Base64 Encoder / Decoder

Encode or decode Base64 text and files — including data URIs.

OKInvalid Base64Download result
🔒 Runs entirely in your browser.

Base64 encoder and decoder

Convert text to Base64 and back, encode a file into a Base64 data URI, or decode Base64 into readable text or a downloadable file. UTF-8 is handled correctly, so accents and emoji survive the round trip. Turn on URL-safe to use the - and _ alphabet used in URLs and JWTs.

What is Base64?

Base64 encodes binary data as plain ASCII text so it can travel safely through systems that only handle text — email, JSON, data URIs and HTTP headers. It isn’t encryption; anyone can decode it, so never use it to protect secrets.

Frequently asked questions

Does it handle UTF-8, accents and emoji?
Yes. Text is encoded as UTF-8 before Base64, so international characters and emoji encode and decode correctly.
What is URL-safe Base64?
A variant that replaces + and / with - and _ and drops the padding, so the result is safe inside URLs and tokens such as JWTs. Toggle it on if you need it.
Can I encode a file?
Yes — click “Encode a file” to turn any file into a Base64 data URI. Decoding Base64 also offers a download of the original bytes.
Is Base64 secure?
No. Base64 is encoding, not encryption — anyone can decode it. Never use it to hide passwords or sensitive data.