Base64 Encoder
Encode and decode Base64 for text, images, and files — all in your browser.
What is Base64?
Base64 is a binary-to-text encoding scheme defined in RFC 4648. It maps every three bytes of binary data to four ASCII characters drawn from a 64-symbol alphabet (A–Z, a–z, 0–9, plus + and /). The result is safe to transmit over channels designed for text — email, JSON, XML, URLs, HTTP headers, and source code.
It is not encryption. Anyone can decode a Base64 string trivially. Base64 exists purely to make binary data survive text-only transports without corruption.
Common use cases
- Embedding images or fonts inline via
data:URIs in HTML and CSS. - Sending binary payloads inside JSON APIs where raw bytes are not allowed.
- Encoding email attachments (MIME) so they survive SMTP relays.
- HTTP Basic Authentication credentials.
- Encoding JWT headers and payloads (URL-safe Base64).
- Storing binary blobs in text-only databases or config files.
Privacy by design
All encoding and decoding is performed locally inside your browser. Your text, images, and files never touch a server. Close the tab and everything is gone — making this tool safe for API tokens, credentials, or confidential documents.
Features
- ✓Browser Based
- ✓Free Forever
- ✓Unlimited Encoding
- ✓No Login
- ✓No Registration
- ✓Text · Images · Files
- ✓Base64 → File Decoder
- ✓Data URI Support
- ✓Live Validation
- ✓Copy & Download
- ✓Files up to 100 MB
- ✓Mobile Friendly
How to use Base64 Encoder
- 1
Choose Text, Images, Files, or Base64 → File depending on what you want to encode or decode.
- 2
For text, type or paste your input — the result updates live and validates Base64 as you type.
- 3
For images and files, drag & drop, paste, or browse to load a local file. Nothing leaves your device.
- 4
Copy the output to your clipboard, or download it as a .txt or the original decoded file.
Frequently asked questions
Related tools
JSON Formatter
Format, validate, and minify JSON with syntax highlighting.
UUID Generator
Generate RFC-compliant UUID v1 and v4 identifiers.
Password Generator
Generate strong, cryptographically secure passwords with full control over length and character rules.
QR Code Generator
Create high-quality QR codes for URLs, text, Wi-Fi, and more. Download as PNG or SVG.
Barcode Generator
Generate 1D barcodes (EAN, UPC, Code 128, Code 39) for retail, inventory, and shipping.