Base64 Encode / Decode
Encode text to Base64 and decode it back, with full Unicode support.
Base64 Encode / Decode
The Base64 encode / decode tool converts text to Base64 and decodes Base64 strings back to plain text, with full Unicode support so accented characters and emoji round-trip correctly. Base64 is everywhere in web development: data URIs, HTTP Basic auth headers, email attachments, JWT segments, and JSON payloads that need to carry binary-safe data. Having a fast, reliable encoder on hand saves you from wiring up a script every time.
How it works
Encoding and decoding happen locally in your browser with JavaScript. It handles UTF-8 correctly, so multi-byte characters are encoded to valid Base64 rather than producing mangled output. Paste text to encode, or paste a Base64 string to decode; the result updates immediately with no server call and nothing uploaded.
Practical use cases
- Encode a small snippet for a data URI or configuration value.
- Decode the payload of a token or an API response to inspect it.
- Build Basic auth strings for quick API testing.
- Verify that a Base64 blob round-trips cleanly before using it.
If your Base64 string is an image, switch to the Base64 to Image tool, or go the other way with Image to Base64. To decode token segments in full, try the JWT Decoder.
Private by design
Because everything runs in-browser, your text and secrets are never uploaded. The tool is free, requires no account, and works on all modern browsers including mobile, so you can encode and decode Base64 without exposing sensitive data to a remote server.
Frequently asked questions
Yes. The encoder uses proper UTF-8 handling, so accented letters, non-Latin scripts, and emoji encode and decode without corruption.
Related tools
Base64 to Image
Preview and download an image from a Base64 or data-URI string.
Image to Base64
Turn any image into a Base64 data URI for CSS, HTML or JSON.
URL Encode / Decode
Percent-encode and decode URLs and query-string components safely.
HTML Entity Encoder
Encode and decode HTML entities to escape or unescape markup.