Developer Tools
Encode plain text or binary data to Base64 and decode Base64 back to text with instant bidirectional switching. Supports URL-safe Base64 variant, file encoding, and both standard and URL-safe alphabets.
Follow these simple steps to get instant, accurate results directly in your browser:
Choose 'Encode' to generate Base64 or 'Decode' to restore human-readable text.
Type or paste your text into the input field.
Click 'Copy' to capture your encoded or decoded output string.
The Base64 Encode & Decode tool transforms raw text and binary strings into RFC 4648 Base64 strings and reverses Base64 back into clear text. It is built to support modern developer workflows, API authorization headers, and data URI generation.
Standard browser btoa() functions fail when encountering multi-byte Unicode characters (such as emojis or accented characters). Our encoder uses UTF-8 byte stream encoding before computing 64-radix representation, ensuring international character fidelity and avoiding Latin-1 character range exceptions.
Operating completely on the client side, you can safely encode credentials, Basic Auth strings (user:password), and session cookies without external exposure.
Safely encodes emojis, symbols, and non-ASCII character sets without crashing.
Quickly toggle between encoding and decoding with a single click.
Optionally replaces '+' with '-' and '/' with '_' for query parameter safety.
Credentials and keys are never transmitted to external cloud servers.
Encode username and password pairs into 'Authorization: Basic <credentials>' headers.
Encode small SVGs, fonts, and assets for embedding directly in CSS or HTML.
Decode base64-encoded cookie segments and microservice payload envelopes.
Explore complementary utilities for your workflow