Free Base64 Encoder & Decoder 2026
Encode text or files to Base64 — or decode any Base64 string back to readable text. Runs in your browser, no signup, no data stored.
Base64 Encoder & Decoder
Pick operation → enter text or upload file → Convert Now
How to Use the Base64 Converter
3 steps — no account, no install, works on any device
What Is Base64?
Base64 is a binary-to-text encoding scheme representing binary data using 64 printable ASCII characters — A–Z, a–z, 0–9, + and /. It makes binary content safe to transmit over text-only protocols like email, HTTP headers, and JSON.
Developed for MIME email encoding, Base64 is now fundamental to the web — used in data URIs, JWT tokens, HTTP Basic Auth, and API file transfers. The trade-off is a ~33% size increase, acceptable for compatibility.
Common Use Cases
data:image/png;base64,…Base64 Quick Reference
Encode vs decode with example inputs and outputs
| Mode | Input | Output | Best For |
|---|---|---|---|
| Encode | Hello World | SGVsbG8gV29ybGQ= | Sending text via binary-unsafe channels |
| Decode | SGVsbG8gV29ybGQ= | Hello World | Reading JWT payloads, API responses |
| URL-Safe | Hi+/Byte | SGkrL0J5dGU= | URL params, JWT tokens, filenames |
| File | photo.jpg (binary) | /9j/4AAQSkZJRg… | Embedding images as data URIs in HTML |
Base64 Code Examples by Language
Copy-paste snippets for encoding and decoding Base64 in popular languages
Frequently Asked Questions
Everything about Base64 encoding, decoding, and this tool
+ and /, which have special meaning in URLs. URL-safe Base64 replaces + with - and / with _, making it safe to include in URLs without percent-encoding. JWT tokens use URL-safe Base64. They are otherwise identical.