Base64 Decoder
Decode Base64 encoded string data back into readable plain text with real-time error checking.
Base64 Text Decoder
Paste Base64 encoded string to convert back to plain text.
What is Base64 Decoding?
Base64 decoding is the process of converting an ASCII text string formatted in the 64-character Base64 alphabet back into its original plain text or binary representation. It reverses the encoding algorithm by grouping 6-bit values extracted from the Base64 alphabet (A–Z, a–z, 0–9, +, and /) and assembling them into original 8-bit bytes (octets).
Our online Base64 decoder supports full UTF-8 multi-byte decoding, meaning it effortlessly restores international characters, accented letters (such as é, ü, ñ), mathematical symbols, and modern emojis (such as 🚀 or 💡) without encoding errors or character corruption. It also automatically detects and decodes URL-safe Base64 strings (which substitute - and _ for + and /) and handles missing padding (=) gracefully.
How to Decode Base64 to Plain Text
- Paste or Type Input: Paste your Base64 encoded string into the input box above.
- Click Decode Base64: Press the Decode Base64 button. The tool validates the string and converts it instantly to human-readable UTF-8 plain text.
- Copy or Download: Click Copy Text to copy the decoded string to your clipboard, or click Download TXT to save it as a text file.
Practical Decoding Examples
Here are several clear examples showing common Base64 inputs alongside their decoded outputs:
| Base64 Input | Decoded Plain Text | Notes |
|---|---|---|
SGVsbG8gV29ybGQh |
Hello World! |
Standard ASCII string (no padding needed) |
SGVsbG8= |
Hello |
Single padding byte (=) for 5-byte input |
dGVzdA== |
test |
Double padding byte (==) for 4-byte input |
8J+agCBjYWbDqQ== |
🚀 café |
Multi-byte UTF-8 emoji and accented characters |
ZXhhbXBsZS11cmw_cT0x |
example-url?q=1 |
URL-safe Base64 (using - and _) |
Real-World Use Cases for Base64 Decoding
- Inspecting API Payloads & Webhooks: Webhooks from payment gateways (Stripe, PayPal) or cloud providers frequently transmit event payloads as Base64-encoded JSON. Decoding them reveals the raw request parameters.
- Decoding HTTP Basic Authentication Headers: The standard
Authorization: Basic <credentials>header encodesusername:passwordin Base64. Developers decode this to verify authentication headers during debugging. - Unpacking JWT Tokens (JSON Web Tokens): A JWT consists of three Base64URL-encoded segments separated by dots (header, payload, signature). Decoding the payload segment allows developers to view claims, user IDs, and token expiration timestamps.
- Extracting Embedded Data URIs: Web developers often find inline images or fonts stored as
data:image/png;base64,...ordata:application/json;base64,...in CSS and HTML source code. - Email Attachment Debugging: The MIME protocol (Multipurpose Internet Mail Extensions) relies on Base64 encoding to send binary files across SMTP mail servers. Decoding MIME bodies reveals the underlying file contents.
Understanding the Base64 Alphabet and Padding
Standard Base64 (defined in RFC 4648) uses an index of 64 characters:
- Uppercase letters:
A–Z(values 0–25) - Lowercase letters:
a–z(values 26–51) - Digits:
0–9(values 52–61) - Special characters:
+(value 62) and/(value 63)
Because 4 Base64 characters represent 3 raw bytes (24 bits = 4 × 6 bits), inputs that do not divide evenly by 3 bytes require padding characters (=) at the end. One padding equals two remaining bytes, while two paddings equal one remaining byte.
Need to convert plain text into Base64 instead? Use our companion Base64 Encoder. If you work with web protocols, you can also explore our URL Decoder, HTML Entity Encoder, or inspect binary bytes with the Text to Binary Converter.
Frequently Asked Questions
How does Base64 decoding work?
Base64 decoding translates groups of four 6-bit Base64 characters (24 bits total) back into three 8-bit bytes (ASCII or UTF-8 characters). Each character from the Base64 alphabet corresponds to a numerical value from 0 to 63, which is converted to binary and concatenated into original characters.
Why does Base64 text often end with equal signs (= or ==)?
The equal sign (=) is a padding indicator used in RFC 4648. Because Base64 operates on 24-bit blocks (3 bytes), strings that do not divide evenly by 3 bytes use = (for 2 remaining bytes) or == (for 1 remaining byte) to complete the 4-character block.
Can this tool decode URL-Safe Base64 strings?
Yes. URL-safe Base64 substitutes hyphen (-) for plus (+) and underscore (_) for forward slash (/) to avoid URL percent-encoding conflicts. This decoder automatically normalizes URL-safe characters and restores missing padding before decoding.
Does this decoder handle special characters, non-English text, and emojis?
Yes. The decoder uses full UTF-8 byte reconstruction. This ensures accents (such as é, ñ, ç), Asian logograms, Cyrillic characters, and emojis (such as 🚀) decode accurately without garbled characters or question marks.
Is my data uploaded or stored on any server?
No. All decoding runs entirely client-side inside your browser using HTML5 and JavaScript. Your input text and decoded data are never transmitted to external servers or logged anywhere.
Explore More Free Text & Conversion Tools
Fast, secure, and easy-to-use online text utilities built for creators and developers.
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case and Capitalized case.
Character Counter
Count total characters with and without spaces, words, sentences, and lines in real-time.
Word Counter Online
Accurately count words, unique vocabulary, characters, reading time, and word frequency.
Sentence Counter
Count sentences accurately, calculate average sentence length and readability metrics.
Reading Time Calculator
Estimate reading and speaking time based on custom WPM reading speeds.
Decimal to Hex Converter
Convert base-10 decimal numbers to hexadecimal format with prefix and padding controls.
Text Reverser
Reverse text characters, word order, line order, or flip text upside down instantly.
Letter Counter
Accurately count total letters (A-Z), vowels, consonants, and analyze letter frequencies.
Line Counter
Count total lines, non-empty lines, empty lines, and add line numbers automatically.
Text Cleaner
Clean duplicate spaces, strip HTML tags, remove empty lines, symbols, and numbers.
Alphabetical Order Sorter
Sort lines or words alphabetically (A-Z / Z-A), remove duplicates, or sort by length.
Line Break Remover
Remove newlines, replace breaks with custom delimiters, and preserve paragraphs.
Title Capitalization Tool
Convert text into proper title case following AP Style and Chicago style guidelines.
Text Formatter
Format line prefixes, suffixes, paragraph indentations, and sentence spacing.
Whitespace Remover
Remove all spaces, collapse multiple spaces, trim lines, and remove tab characters.
Word Frequency Counter
Analyze word frequency counts, filter stop words, and sort vocabulary density.
HTML Entity Encoder
Encode special HTML characters into Named, Decimal, or Hexadecimal HTML entities.
Base64 Encoder
Encode UTF-8 text or strings into standard or URL-safe Base64 format.
Base64 Decoder
Decode Base64 string data back to readable UTF-8 text with input error validation.
URL Decoder
Decode URL-encoded strings, percent encodings, and parse query parameters.
Text to Binary Converter
Convert plain text strings into 8-bit binary code (0s and 1s) with UTF-8 byte encoding.