Base64 encode and decode
Paste text or Base64 and the result appears as you type. Files and images work too, and you can turn decoded Base64 back into the original file.
- No upload
- No account
- Free, no watermark
Text to encodeBase64 to decode
Result
How it works
How to encode or decode Base64
Choose Encode or Decode
Encode turns text or a file into Base64. Decode turns Base64 back into text or a file.
Paste your text or add a file
Type or paste into the box, or press Choose file. The result updates straight away.
Copy or download
Copy the result with one tap, or download it. Decoded files get the right file extension where it can be detected.
Why
What Base64 is for
Base64 writes any data with 64 safe characters: letters, digits, plus and slash. That lets images, attachments and keys travel through email, JSON, HTML and settings files that only accept plain text. It is an encoding, not encryption, so anyone can decode it.
Questions
Questions and answers
Is Base64 encryption?
No. Base64 only changes how data is written, and anyone can decode it without a key. To keep text secret, use the text encryption tool on this site, which locks it with a password.
Why is the Base64 text longer than the original?
Every 3 bytes become 4 characters, so Base64 is about a third larger than the data it holds. The equals signs at the end are padding that fills up the last group.
What is URL safe Base64?
Standard Base64 uses plus and slash, which have a special meaning in web addresses. The URL safe alphabet uses minus and underscore instead and usually leaves out the padding. It is used in JSON Web Tokens and in links. The decoder reads both.
How do I put an image in HTML or CSS with Base64?
Choose Encode, add the image with Choose file and tick Data URI. Copy the result and use it as the src of an img tag or in url() in CSS. This works best for small icons, because it makes the page larger.
Does it work offline?
Yes. Once the page has loaded, it works without an internet connection, and nothing you type or add is sent anywhere.
More tools
More free tools
Everything on ConvertOrino runs in your browser, so your files and what you type never leave your device.
Last updated