Base64 encode / decode
Encode text to Base64 or decode Base64 back to text, with URL-safe support.
How to use
Type or paste text to encode it to Base64, or paste a Base64 string to decode it back to plain text — the conversion happens as you type, in both directions. Base64 is how binary or awkward data gets safely embedded in text formats like JSON, data URLs, email and HTML.
Because it runs entirely in your browser, you can encode or decode sensitive values (tokens, credentials, snippets) without sending them to anyone. The copy button grabs the result, and it all works offline once the page has loaded.
Remember that Base64 is encoding, not encryption: it's reversible by anyone, so use it for transport and embedding, not for keeping secrets.
Examples
Encode a small icon to Base64 to inline it in CSS or HTML and save a request.
Paste a Base64 chunk from a header or JWT segment to read what it contains.
Encode text with special characters so it survives systems that mangle raw bytes.
Frequently asked questions
Is Base64 encryption?
No. Base64 is a reversible encoding, not encryption — anyone can decode it. Don't use it to protect secrets.
Can I decode as well as encode?
Yes. The tool converts both ways: text to Base64 and Base64 back to text.
Does it handle Unicode?
Yes, text is encoded as UTF-8 before Base64 so emoji and non-Latin characters round-trip correctly.
Is anything uploaded?
No. Encoding and decoding happen locally in your browser, so your data stays on your device.
Related tools
Percent-encode or decode text for safe use in URLs, in component or full-URI mode.
Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of any text at once.
Format, validate and minify JSON with precise error locations and key sorting.
Decode a JSON Web Token's header and payload and inspect its time claims. No verification.
Convert UTF-8 text to its hexadecimal bytes and back, with custom separators.