Loading tool…
Base64 writes any data using plain Latin characters. It is used in e-mail, JSON, data URLs and to embed images in CSS or HTML.
How to use
- Choose an action: text → Base64, Base64 → text, file → Base64 or Base64 → file.
- Paste text or choose a file.
- Press “Run”, then copy the result or download the file.
Good to know
- Text is encoded as UTF-8, so Cyrillic and emoji survive intact.
- The URL-safe variant uses - and _ instead of + and /, as in JWT tokens.
- Base64 is not encryption: anyone can decode the string.
When it helps
- Embed a small icon in CSS as a data URL.
- Decode the contents of a token or an attachment.
- Send binary data inside JSON.
Frequently asked questions
Is it safe to paste tokens here?
Processing happens in your browser and nothing is sent. Still, Base64 does not hide data, so do not publish decoded secrets.
Why does the decoded text look like garbage?
It is probably binary data, such as an image. Choose “Base64 → file”.
What is the file size limit?
Up to 10 MB. Base64 makes data about a third larger.