100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Free · Browser-only · No upload

Base64 decode online

Turn Base64 strings back into readable UTF-8 text

Decode base64 online — paste a Base64 string and recover the original Unicode text instantly. Built for inspecting API responses, JWT payloads, config snippets, and log output without desktop utilities.

Decoding uses native atob and TextDecoder in your browser — no upload, no account. Use our Base64 Encoder to convert text back to Base64.

Need the reverse conversion?

Base64 Encoder
Base64 string
Decoded text
URL-safeOff
Size change

More Text Utilities

🔓
Base64 Decoder
🧬
Base64 Encoder
🔡
Case Converter
Cron Generator
🎨
CSS Minifier
📐
CSS Unminifier
📆
Date Format Converter
📅
Date to Unix
🔎
Find and Replace
🛡️
HTML Escape
📰
HTML Minifier
↩️
HTML to Markdown
🔓
HTML Unescape
📄
HTML Unminifier
📋
Markdown Preview
🔄
Markdown to HTML
🎲
Random Number
🔤
Random String
🔍
Regex Tester
🧹
Remove All Whitespace
↩️
Reverse Text
✂️
Split String
⚖️
Text Compare
🔁
Text Repeater
📖
Text Viewer
🌍
Time Zone Converter
🕐
Unix Time to Date
🔗
URL Encoder
🔤
UTF-8 Decoder
🌐
UTF-8 Encoder
📊
Word Counter

Browse by category

Base64 decoding (conceptual)

Each quartet of Base64 characters maps back to three bytes. Padding = characters indicate how many trailing bytes were absent in the original input. URL-safe variants use a different character mapping before the same bit reconstruction.

bytes = atob(base64); text = new TextDecoder().decode(Uint8Array.from(bytes, c => c.charCodeAt(0)))

Decoding example

SGVsbG8= decodes to Hello. A longer string encoding Hello, 世界 👋 returns the full Unicode greeting including emoji.

If decode succeeds but the text is unreadable symbols, the source was likely binary — switch to Base64 to Image for visual inspection.

Complete guide to decoding Base64 online

What Base64 decoding does

Base64 decoding reverses encoding: a stream of ASCII characters becomes the original bytes, then readable UTF-8 text. Each valid quartet of Base64 characters represents three output bytes before padding adjustments.

When you decode base64 online, you are translating transport-encoded text into what your editor would show — not performing URL decoding, HTML unescaping, or JWT signature verification. Those are separate layers.

This base64 decoder uses atob followed by TextDecoder with UTF-8, matching what most modern web stacks expect for text payloads. Binary image or PDF data should use our Base64 to Image tool for preview and download.

Invalid characters, wrong padding, or alphabet mismatches surface as clear errors rather than silent corruption.

How to decode Base64 to text online

Paste your Base64 string into the input panel — with or without line breaks. The decoded text appears live as you edit. SGVsbG8= decodes to Hello; longer strings with emoji expand after decoding to multi-byte UTF-8 characters.

Enable URL-safe mode when the source uses - and _ instead of + and /, common in JWT middle segments and some query parameters. The tool normalizes padding automatically.

Copy decoded text with one click or save as a .txt file. For round-trip checks, paste the result into our Base64 Encoder and confirm you get the original Base64 back.

Import a .txt or .b64 file when the string is too long to paste reliably from a log viewer.

Decoding API payloads and JWT segments

JSON APIs sometimes return Base64-wrapped text fields. Decode here to read the plaintext before chaining to a JSON formatter or URL decoder if further escaping appears.

JWT middle segments are Base64URL-encoded JSON. Paste the segment between the dots, enable URL-safe mode, and read the payload — but never trust unsigned tokens for authorization. Use a proper JWT library for signature verification.

If decoded text looks like another Base64 string, you may be facing double-encoding. Decode once, inspect the result, and decode again only if it still matches the Base64 alphabet.

Garbled characters after decode often mean the original data was binary (image, PDF) rather than UTF-8 text. Try Base64 to Image or a file-oriented decoder instead.

Common decode failures and fixes

Invalid padding: standard Base64 length should be a multiple of four. The tool adds = padding for URL-safe input automatically, but corrupted strings from truncated copy-paste need manual repair.

Whitespace and quotes: log exports and JSON often wrap strings in quotes or insert newlines every 76 characters. This decoder strips whitespace; remove surrounding JSON quotes before pasting.

Alphabet mismatch: standard Base64 uses + and /. URL-safe variants use - and _. Toggle URL-safe mode when decode fails on strings from JWTs or query parameters.

Wrong content type: decoding image or PDF Base64 here shows unreadable characters. Use Base64 to Image for visual preview or download.

Base64 decode vs other decoding tools

URL percent-encoding (%48%65%6c%6c%6f) is not Base64 — use our URL Encoder/decoder for that layer. Hex byte dumps need the UTF-8 Decoder, not this page.

HTML entities (&) are markup escaping — use our HTML Escape tool. Chain decoders in order: Base64 first if the outer wrapper is Base64, then UTF-8 or URL as needed.

base 64 decode and base64 decode refer to the same RFC 4648 process. Spacing, hyphens in keywords, and casual spelling do not change the algorithm.

Privacy and related tools

atob and TextDecoder run locally in your browser. API keys, JWT payloads, and customer data never upload to a server. Clear the textarea when finished on shared machines.

Pair with our Base64 Encoder for reverse conversion. Use Base64 to Image when the payload is a photo or diagram. Use Image to Base64 when you need to create encoded strings from files.

Treat decoded content from untrusted logs carefully — malicious payloads should be inspected in isolated environments.

Detailed guide

Inspecting a JWT payload

Copy the middle segment of a JWT (between the dots). Enable URL-safe mode, decode, and read the JSON payload. Verify signatures in trusted libraries — never authorize users based on decoded payload alone.

Recovering text from an API log

Copy the Base64 field from your log or network tab. Strip JSON quotes and whitespace, paste here, and read the plaintext. Chain to JSON formatters if the result is still escaped JSON inside the string.

Common questions

Base64 Decoder FAQ

How do I decode base64 online?

Paste your Base64 string into the input panel. Decoded UTF-8 text appears automatically. Enable URL-safe mode for JWT-style strings.

Why does my decoded text show garbled characters?

The original data was probably binary (image, PDF) rather than UTF-8 text. Use Base64 to Image for visual payloads, or confirm the source encoding.

What is the difference between base64 decode online and a base64 decoder online?

Both describe the same action — turning Base64 text back into bytes and readable UTF-8. This page focuses on decode-only text output.

Can I decode JWT tokens here?

You can decode the middle payload segment for inspection. Enable URL-safe mode. Always verify signatures with a proper JWT library before trusting claims.

Why does decode fail?

Invalid characters, wrong padding, or URL-safe alphabet mismatch are common causes. Remove newlines, strip JSON quotes, and try toggling URL-safe mode.

Is it safe to paste API keys or passwords here?

Processing happens entirely in your browser tab. We do not upload or store your input. Still, clear the fields on shared computers when finished.

How do I encode text again?

Open our Base64 Encoder, paste your plaintext, and copy the Base64 output.

Does the Base64 Decoder send my input to a server?

Yes. Everything runs in your browser. Your input is not uploaded, logged, or stored on our servers.

Do I need an account?

No account or sign-up is required. Open the page and start using the tool immediately.