Skip to content

Base64 encode / decode

Encode text or files to Base64 and decode it back.

Runs in your browser. Nothing is uploaded.

About Base64 encode / decode

Encode text to Base64 or decode Base64 back to text, with full UTF-8 support so emoji and accents survive. Choose URL-safe Base64 for tokens and URLs, or turn a file into a Base64 data URI.

Questions

What is URL-safe Base64?
It uses - and _ instead of + and /, and usually drops the = padding, so the result can go in URLs and file names. JWTs use it.
Why does decoding fail?
The text contains characters that are not Base64, or it was cut off. Spaces and line breaks are ignored.
Is it free? Is my data private?
Yes to both. There is no sign-up and no limit, and everything runs on your device, so your data never reaches our servers.

More tools