How to use: Base64 encode & decode
- Choose encode or decode.
- Paste text or choose a file (up to 5 MB).
- Copy the result or download the decoded file.
What it accepts and what you get
- Input
- UTF-8 text or a file up to 5 MB.
- Output
- The Base64 string or the decoded content; the URL-safe variant is supported.
- Where your data is processed
- Your data is processed in your browser and is not sent to our servers.
Limitations and notes
- Base64 does not encrypt anything: anyone can decode it.
Frequently asked questions
Is Base64 the same as encryption?
No. Base64 only changes how data is represented: anyone can decode it, so it does not protect information.
Can I encode a file?
Yes, UTF-8 text or a file of up to 5 MB, and also the URL-safe variant.
What is Base64 used for?
To turn binary data, such as an image or a file, into text you can paste into JSON, an email or a URL. It is a way of carrying data, not of protecting it.
What is the URL-safe variant?
It swaps the + and / characters for - and _ so the string causes no trouble inside a web address. The = padding is often dropped as well.
When to use it
- When an API or email gives you data in Base64 and you want to see what it holds.
- To turn a small file into text you can paste into a JSON.
- When you have to put a small image inside a JSON, an HTML or a CSS file.
Examples
- Decode a text
- Paste the string, choose decode and read the original text.
- Encode a file
- Choose a file of up to 5 MB and copy its Base64 string.
- An image on a page
- You encode a small image and paste it as a data URI in an HTML file so it does not depend on a separate file.
Common mistakes
- Believing it protects data: Base64 does not encrypt anything and anyone can decode it.
- Mixing the normal variant with URL-safe: if the result looks wrong, try the other.
- Encoding large files: Base64 makes data about a third bigger and the tool accepts up to 5 MB.

