Base64 Encode and Decode
Encode text or files to Base64 and decode Base64 back, with full UTF-8 support.
Runs in your browser. Your text and files never leave your device.
How to encode or decode Base64
- Paste text into the input box.
- Press Encode to turn it into Base64, or Decode to turn Base64 back into text.
- To encode a file, press Encode a file. Images also get a data URL you can use in CSS or HTML.
Decoding a JWT? Its middle part is URL-safe Base64: paste it and press Decode. Working with JSON? Format it with the JSON formatter.
Frequently Asked Questions
What is Base64?
Base64 turns any data into plain letters, digits, + and /, so it can travel safely in text: email attachments, JSON, data URLs and HTTP headers. It makes data about a third larger.
Is Base64 encryption?
No. Anyone can decode it instantly. Never use Base64 to hide passwords or secrets.
What is URL-safe Base64?
A variant that uses - and _ instead of + and / and drops the = padding, so the result can sit in a URL or file name. JWT tokens use it. The decoder here reads both kinds.
Does it handle emoji and non-English text?
Yes. Text is encoded as UTF-8 first, so Bangla, Chinese, accented letters and emoji all round-trip correctly.
Can I encode a file or image?
Yes. Choose a file and you get its Base64, plus a ready data URL for images. Files are read in your browser and never uploaded.