About this tool
Base64 is a way to represent any data – text, images or entire files – using only 64 characters: A–Z, a–z, 0–9, + and /. This lets binary data travel safely through channels that only handle text, such as e-mail attachments, JSON APIs, HTML attributes or configuration files.
With this tool you encode text or files to Base64 and decode Base64 back to readable text. The URL-safe variant (base64url) replaces + and / with - and _ and is used for example in JWTs and web addresses. For tokens, also try the JWT Decoder.
All conversions run locally in your browser. Your data is never uploaded – not even files.
How it works
- Choose “Encode” or “Decode” at the top.
- Paste your text or Base64 string into the input – the result appears instantly below.
- Enable “URL-safe” for base64url if needed, e.g. for tokens or URLs.
- For files, use “Encode a file”: you get plain Base64 or a data URL ready to embed.
Frequently asked questions
Is Base64 encryption?
No. Base64 is just an encoding: anyone can reverse it without a key. Use real encryption for confidential data. To verify data integrity, use a hash – see the Hash Generator.
Why is the Base64 text larger than the original?
Base64 represents every 3 bytes as 4 characters, so encoded data is about 33% larger than the original, plus possible padding characters (=) at the end.
What do the equals signs at the end mean?
That is padding. If the data length is not a multiple of 3 bytes, one or two = are added. Padding is optional when decoding – this tool also accepts Base64 without it.
What is the difference between Base64 and base64url?
base64url uses - and _ instead of + and / and usually omits the padding, so the text can be used in URLs and file names without further encoding. For other parts of a URL, use the URL Encode / Decode.
Why does decoding say the data is binary?
The Base64 string does not contain text but, for example, an image or a compressed file. Such data cannot be shown as text. You can inspect the individual bytes with the Text ↔ Hex / Binary / ASCII.