Base64 Encoder & Decoder
Dictation needs Chrome, Edge, or Safari.
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's used to embed images in CSS and HTML, encode API credentials, transfer files through text-only protocols, and store binary data in JSON. Every developer encounters Base64 regularly.
How to Use This Encoder
- Type or paste your text into the input box, or upload an image file.
- Toggle between Encode (text/image → Base64) and Decode (Base64 → text/image).
- Enable URL-safe mode if you need the output for use in a URL.
- Copy the result or download the decoded image directly.
Frequently Asked Questions
Is Base64 encryption?
No. Base64 is encoding, not encryption. It obscures data but provides zero security — anyone can decode it. Never use Base64 to store passwords or sensitive data.
Why does my Base64 string end with ==?
The equals signs are padding. Base64 encodes data in blocks of 3 bytes into 4 characters. If your input isn't evenly divisible by 3, padding characters (=) are added to make the output length a multiple of 4.
Does this tool send my files to a server?
No. All encoding and decoding happens in your browser. Your files and text never leave your device.
