Base64 Encoder / Decoder
Convert text, or a file, to and from Base64
Text
Base64
Result will appear here.
What this tool does
Base64 Encoder / Decoder converts text or a file into Base64 text, and converts Base64 text back into its original form. Everything happens locally in your browser — nothing is uploaded anywhere.
How it works
- Encode / Decode — switch between turning input into Base64, or turning Base64 back into its original content.
- Input from Text or File — encode a typed string, or choose a file from your device (an image, document, or any binary file) to encode instead.
- URL-safe — when checked, uses the URL-safe Base64 alphabet (
-and_instead of+and/, no padding), which is common in URLs and tokens. - Copy Output / Download Decoded File — grab the result: copy encoded text, or download a decoded file if the Base64 represents one (e.g. an image preview appears automatically when detected).
Good to know
- Base64 is an encoding, not encryption or compression — it makes binary data safe to put in text, and typically makes it about a third larger, not smaller or hidden.
- Decoding requires valid Base64; unrecognized characters or broken padding will show an error rather than a guess.
- When decoding an image, a preview renders automatically; any other file type offers a direct download instead.