Base64 Encoder / Decoder
Encode and decode between multiple formats including file support. Drop images, audio, documents, or any file to get its Base64 representation. Everything runs locally in your browser.
...About This Tool
A multi-format encoder and decoder supporting the most common encoding schemes used in web development, APIs, and data exchange. Now with full file support for images, audio, video, documents, and any binary file.
Supported Formats
- Base64 — standard RFC 4648 encoding
- Base64URL — URL-safe variant used in JWTs
- URL Encoding — percent-encoding for URLs
- Hexadecimal — hex string encoding
- HTML Entities — HTML character escaping
- Binary — binary string representation
File Support
Images — PNG, JPEG, GIF, WebP, SVG (with preview)
- Audio — MP3, OGG, WAV (with player)
- Video — MP4, WebM (with player)
Documents — PDF, JSON, plain text, and any other file
How to Use
Switch between Text and File mode using the tabs
- In Text mode: paste text and select input/output encoding formats
In File mode: drop a file or click to browse, then copy the Base64 output
- Toggle the Data URI prefix for ready-to-use CSS/HTML embedding
- Use the Download button to save decoded Base64 back as a file
Privacy
All encoding and decoding happens entirely in your browser. No files are uploaded to any server. Your data never leaves your device.
Linux Command Reference
You can achieve the same operations from the terminal using built-in Linux tools. Here are the most common examples: