Base64 Encoder / Decoder
Encode and decode Base64 strings online. Free Base64 encoder/decoder — supports text, URLs, and data URIs. No signup.
🔒 Your text stays in your browser — nothing is sent to our servers
Text Input
Base64 Output
How to Use
Three steps to get started
1
Choose direction
Select "Text → Base64" to encode or "Base64 → Text" to decode.
2
Paste your content
Enter the text or Base64 string you want to convert.
3
Copy the result
Click Copy and use the encoded/decoded result in your project.
Base64 encoding and decoding explained
Base64 is the standard way to encode binary data as plain ASCII text. It's not encryption — it's a text-safe representation of bytes, used everywhere in web development and data transfer.
Real-world examples of Base64:
- Data URIs:
data:image/png;base64,iVBORw0KGgo... - Basic Auth: HTTP Authorization header encodes username:password in Base64
- JWT tokens: Header and payload sections are Base64url-encoded
- Email: MIME encodes attachments as Base64 to survive text-only email protocols
- CSS fonts: Embedded web fonts use Base64 data URIs
This tool handles UTF-8 text correctly — it properly encodes non-ASCII characters including emoji, accented letters, and international text. All processing happens in your browser — private, instant, no character limits.
FAQ
Frequently Asked Questions
Related Tools