Base64 Encoder & Decoder — Free Online Tool
Encode plain text to Base64 or decode Base64 back to text. Supports file encoding too. All done in your browser.
What is Base64?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's commonly used to embed binary data (like images or files) inside text-based formats such as HTML, JSON, XML, or email.
Common Uses
- Embedding images in HTML/CSS as data URIs
- Encoding email attachments (MIME)
- Storing binary data in JSON APIs
- Encoding JWT (JSON Web Tokens)
- Basic HTTP authentication headers
Note
Base64 is an encoding scheme, not encryption. It does not protect your data — anyone can decode it. Do not use Base64 to secure sensitive information.
Frequently Asked Questions
Base64 is used to encode binary data as ASCII text. Common uses: embedding images in HTML/CSS as data URIs, encoding email attachments, storing binary data in JSON APIs, and encoding JWT tokens.
No. Base64 is an encoding scheme, not encryption. Anyone can decode it instantly. Never use Base64 to protect sensitive information.
Yes. Switch to the "Encode File" tab to upload any file and get its Base64 data URI, ready to embed directly in HTML or CSS.
No. All encoding and decoding runs entirely in your browser. Your data never leaves your device.