What is Base64 used for?
Base64 appears everywhere in web work: embedding images as data URIs, basic-auth headers, JWT tokens (Base64URL), email attachments and API payloads. It is an encoding, not encryption — anyone can decode it — so never treat Base64 as a way to hide secrets. Encoded output is about 33% larger than the input, because every 3 bytes become 4 characters.
How to use the Base64 Encoder & Decoder
- Paste text, or choose a small file to encode.
- Click Encode or Decode.
- Copy the result, or download the decoded output as a file.
Why it matters
- Encode data URIs for images and fonts.
- Inspect tokens and payloads while debugging APIs.
- UTF-8 safe: emoji and non-English text survive the round trip.
- Private by design: files never leave your device.
Key facts
- Handles Unicode text correctly, not just ASCII.
- Files of a few MB encode in seconds.
- Decoded output can be downloaded as a file.
- You get 2 free uses a day; paid plans are unlimited.
Base64 Encoder & Decoder FAQ
Is Base64 encryption?
No. Base64 is a reversible encoding that anyone can decode instantly. It protects data from corruption in transit, not from readers. Never encode passwords or keys and consider them hidden.
Why does my decoded text look garbled?
Usually because the input was not Base64, was truncated, or was encoded from binary data such as an image. Download the decoded result as a file instead of viewing it as text.
What is Base64URL?
A variant used in URLs and JWTs where + and / are replaced by - and _ and padding is often dropped. This decoder accepts both alphabets.
How big can the file be?
A few megabytes is comfortable. Very large files get slow because the whole file is held in memory as text, about a third bigger than the original.