Base64 Encoder
Encode text to Base64 instantly, with full UTF-8 support, a URL-safe Base64url option and MIME line breaks.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Base64 Encoder
- 1 Type or paste the text you want to encode.
- 2 Choose URL-safe output or MIME line breaks if you need them.
- 3 Copy the Base64 result or download it as a file.
About the Base64 Encoder
Base64 turns any data into a string of 64 safe characters: A–Z, a–z, 0–9, + and /, with = as padding. It is used to put binary data or special characters into places that only accept plain text, such as e-mail (MIME), data: URLs, JSON, HTTP Basic authentication headers and configuration files.
The encoder first turns your text into UTF-8 bytes and then encodes those bytes, so accented letters, emoji and non-Latin scripts survive the round trip. Every 3 bytes become 4 characters, which makes Base64 about 33% larger than the original. The = signs at the end fill up the last group of 4.
Base64url is a variant for URLs and file names: it uses - and _ instead of + and / and usually leaves out the padding. It is what JSON Web Tokens use. MIME e-mail wraps Base64 at 76 characters per line. Keep in mind that Base64 is an encoding, not encryption: anyone can decode it.
Frequently asked questions
Is Base64 encryption?
No. Base64 only changes how data is written down. Anyone can decode it instantly, so never use it to hide passwords or secrets.
Why does my Base64 end with = or ==?
Base64 works in groups of 3 bytes. When the input length isn’t a multiple of 3, the last group is filled up and marked with one or two = signs.
What is the difference between Base64 and Base64url?
Base64url replaces + with - and / with _, and usually drops the = padding, so the result can be used in URLs and file names without further encoding.
Does it support emoji and accents?
Yes. Text is encoded as UTF-8 first, the standard on the web, so every character is preserved and decodes back exactly.
Why is the Base64 longer than my text?
Every 3 bytes become 4 characters, so Base64 is about a third larger. Non-ASCII characters take 2–4 bytes in UTF-8, which adds to that.