Base64 Encoder & Decoder
Convert text or files to and from Base64 string formats instantly with UTF-8 support, URL-safe variants, and file download utilities.
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using an ASCII string format. By translating 8-bit binary data into 6-bit radix-64 representation (comprising A-Z, a-z, 0-9, +, and /), it ensures data remains intact during transit across systems designed to process standard text.
It is commonly utilized for embedding inline image assets via Data URIs, transmitting authorization headers (Basic Auth), attaching files inside MIME emails, and safely passing parameter values within HTTP URLs.
Base64 Variant Reference
| Variant Name | Special Characters Used | Padding Character | Typical Usage Scope |
|---|---|---|---|
| Standard Base64 (RFC 4648) | + and / |
= |
MIME emails, XML, Basic Authentication headers |
| URL & Filename Safe | - and _ |
Optional / Stripped | REST API query strings, OAuth state tokens, JWT payloads |
| Data URI Protocol | data:[<mediatype>][;base64],<data> |
= |
Inline HTML images, CSS font embeds, SVG icons |
Frequently Asked Questions (FAQ)
TextEncoder and TextDecoder web APIs, guaranteeing full support for unicode symbols, foreign scripts, and complex emojis.