Base64 Decode
Decode Base64 strings to plain text instantly. All processing happens in your browser — no data leaves your device.
// WHAT IS BASE64
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is used everywhere — from email attachments to data URLs in CSS.
// 64 CHARACTERS
64 Characters, Infinite Data
Base64 uses a set of 64 printable ASCII characters to represent any binary data. The alphabet consists of:
An optional 65th character (=) is used for padding at the end.
// HOW ENCODING WORKS
Split into Bytes
Your text is converted into bytes. Each character becomes an 8-bit number.
Join the Bits
All bytes are concatenated into one long stream of bits.
Group by 6 Bits
The bit stream is divided into groups of 6 bits. Each group maps to one Base64 character.
Map to Characters
Each 6-bit group (0-63) maps to a character in the Base64 alphabet.
// USE CASES
Data URLs
Embed small images directly in HTML or CSS without separate HTTP requests.
Email Attachments
MIME encodes binary attachments as Base64 text so they can travel through text-only email systems.
APIs & Configuration
Store binary secrets, certificates, and keys in JSON configs, environment variables, and Kubernetes secrets.
// HISTORY
Base64 Concept Born
Base64 encoding concept emerged in early mail systems for transmitting binary data over text-only channels.
MIME Proposed
MIME (Multipurpose Internet Mail Extensions) was proposed, solving the problem of transmitting non-text data in email.
RFC 1341 Published
Base64 was formally standardized as part of MIME in RFC 1341, defining the 64-character alphabet we use today.
Data URLs Implemented
Netscape Navigator 4 first implemented data: URLs, later standardized in RFC 2397 (1998), enabling inline resource embedding in HTML.
Modern Web Usage
Base64 is ubiquitous — from JWT tokens to CSS embeddings, APIs, and WebSocket binary data handling.
// FAQ
Is my data sent to a server?
No. All Base64 encoding and decoding happens entirely in your browser using JavaScript. Your data never leaves your device.
Does this support UTF-8?
Yes! The encoder handles UTF-8 characters correctly, including international characters, emojis, and special symbols.
What about URL-safe Base64?
Enable the URL-Safe option to use - and _ instead of + and /. The decoder automatically handles both standard and URL-safe Base64 variants.