What Base64 is
Base64 is a way to represent arbitrary binary data using only 64 printable ASCII characters: A–Z, a–z, 0–9, + and /, with = for padding. It exists because many systems — email headers, JSON, URLs, HTML attributes, HTTP tokens — were designed for text and will corrupt raw bytes such as null, newline or high-bit characters. Base64 trades size for safety: every three bytes become four characters, so the output is about 33% larger than the input, but it survives any text-only channel untouched.
How to use this tool
- Paste or type your text in the left panel, or load a file with Open.
- Encode turns it into Base64; Decode reads Base64 back into text.
- The result updates as you type. Use Copy or Save to take it with you.
Two options cover the common variants. URL-safe swaps + and / for - and _ and drops the = padding, which is what JWTs and query strings use. Line wrap inserts a newline every 64 or 76 characters, the convention for MIME email and PEM certificates.
Unicode and binary safety
Plenty of Base64 boxes break on anything outside plain ASCII. This one encodes text as UTF-8 first, so accented letters, non-Latin scripts and emoji round-trip exactly. Decoding reverses the same path, so what you put in is what you get back — byte for byte.
Where you will meet Base64
- Data URIs — small images or fonts embedded directly in CSS or HTML as
data:image/png;base64,…. - HTTP Basic auth — the
Authorizationheader carriesbase64(user:password)(note: this is encoding, not encryption). - JSON Web Tokens — each part of a JWT is URL-safe Base64.
- Email attachments — MIME wraps binary parts in line-wrapped Base64.
Encoding is not encryption
Base64 is completely reversible by anyone — there is no key and no secret. It hides nothing. Use it to move data safely through text channels, never to protect it. For confidentiality you need real encryption.
Examples
Frequently asked questions
Is Base64 encryption?
Why is my Base64 longer than the original?
What is URL-safe Base64?
Does this work with emoji and non-English text?
Is my data uploaded anywhere?
Related tools
Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.