Base64 Encoder & Decoder
Convert text and files both ways
Input
Result
Nothing entered yet
Enter text or drop a file — the result appears here.
Base64 is not encryption. Anyone can reverse it, so never use it to hide secrets.
Base64 turns binary data into plain text so it can travel through channels that only handle text — email attachments, JSON payloads, data URIs. It is an encoding, not encryption: anyone can reverse it.
How to use
- 1 Choose text or file input.
- 2 Choose encode or decode.
- 3 Enter your content — the result updates as you type.
- 4 Turn on URL-safe if the output will go into a URL or filename.
Frequently asked questions
Is Base64 a form of encryption?
No, and treating it as one is a genuine security mistake. It is a reversible encoding with no key. Anyone who sees the string can decode it in seconds — never use it to hide credentials.
What does URL-safe mean?
Standard Base64 uses + and /, which have special meanings in URLs and are illegal in filenames. The URL-safe variant substitutes - and _ and drops the = padding.
Why does decoding fail?
Usually the string was truncated, had line breaks introduced by copy-paste, or is URL-safe while decoding as standard. Check the length is a multiple of four once padding is accounted for.