Base64 Encoder & Decoder
Encode and decode Base64 text and images. Supports URL-safe Base64. Preview images inline. 100% client-side.
About this tool
Base64 is an encoding scheme that converts binary data into ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /). It's essential for embedding binary data in text formats.
Common uses:
- Embedding images in HTML/CSS as data URLs (data:image/png;base64,...)
- Encoding binary data in JSON API payloads
- HTTP Basic Authentication (credentials = base64("user:pass"))
- Storing binary data in databases that only support text
- Email attachments (MIME encoding)
This tool supports:
Text Encode/Decode — convert any text to and from Base64 with UTF-8 support.
URL-safe Base64 — replaces + with - and / with _ for safe use in URLs and filenames.
Image to Base64 — upload an image and get its Base64 data URL for direct embedding in HTML/CSS.
Base64 to Image — paste a Base64 string and preview the image directly.
Frequently Asked Questions
Does Base64 encrypt my data?
Why does Base64 end with '=='?
What is URL-safe Base64?
How big is a Base64-encoded image?
Related Tools
JWT Decoder
Decode and inspect JWT tokens instantly. View header, payload, and signature. 100% client-side — your tokens never leave your browser.
Hash Generator
Generate cryptographic hashes (MD5, SHA-1, SHA-256, SHA-512) from any text. 100% client-side, instant results.
URL Encoder/Decoder
Encode and decode URLs and query strings. Parse URL components. Convert special characters to percent-encoding.
HTML Entity Codec
Encode and decode HTML entities. Convert special characters to &, <, > and decode them back.