Skip to main content
VVertex Solutions
All toolsPDF ToolsImage ToolsText ToolsCalculatorsDeveloperBlog
VVertex Solutions

Browse tools for merging and compressing PDFs, resizing and converting images, formatting text and JSON, running calculators, and working with code.

Popular Tools

  • Mortgage Calculator
  • GPA Calculator
  • Tip Calculator
  • BMI Calculator
  • Percentage Calculator
  • EMI Calculator
  • Merge PDF
  • JSON Formatter

Categories

  • All tools
  • PDF Tools
  • Image Tools
  • Text Tools
  • Calculators
  • Developer Tools

Company

  • About
  • About the Author
  • Editorial Standards
  • How We Verify Tools
  • How Data Is Processed
  • Calculator Comparisons
  • Disclaimer
  • Privacy Policy
  • Cookie Policy
  • FAQ
  • Accessibility
  • Changelog
  • Terms of Service
  • Contact
  • Blog
  • RSS Feed

© 2026 Vertex Solutions. All rights reserved.

Free tools. No signup. Privacy first.

  1. Home
  2. Text Tools
  3. Base64 Decode
Live3 min read

Base64 Decode

Base64 decode from a Base64 string back to UTF-8 text. Encoding is a separate page.

Text Tools

  • Word Counter
  • Character Counter
  • Case Converter
  • JSON Formatter
  • JSON Validator
  • Base64 Encode
  • Base64 Decode
  • UUID Generator
  • Password Generator
  • Lorem Ipsum

Maintainer and data handling

Maintained by Rehan Baqir, founder & editor. Last updated October 23, 2026. The check is described in the editorial standards and the tool-testing method. He is not presented as a clinician, lender, or tax adviser.

Pasted text is not posted to a Vertex server. No text-tool library is loaded from a CDN at runtime. Full processing notes. Page analytics are separate and described in the privacy policy.

Report an error

Base64 Decode

Browser-basedLocal processing
Results will appear here...

Learn more

  • what Base64 does and does not do

What is Base64 Decoding?

Base64 decoding reverses the encoding process: a string of Base64 characters is converted back into the original byte sequence, then interpreted as text. Developers encounter encoded strings in JWT payloads, Basic auth headers, database fields, and log files.

Vertex Solutions' decoder assumes the underlying bytes represent UTF-8 text — the same assumption used during encoding in the companion Base64 Encode tool.

Reading Encoded Data

When debugging an API, you might receive a field like "data": "SGVsbG8gV29ybGQ=". Pasting that value here reveals Hello World. For nested encodings (Base64 inside JSON inside Base64), decode one layer at a time and inspect the result before proceeding.

Log analysis often surfaces Base64 blobs that are actually gzip-compressed JSON. If decoded text still looks like garbage, the payload may need decompression or a different character encoding — not further Base64 decoding.

URL-Safe and Padding Variants

RFC 4648 defines standard Base64 (+, /) and URL-safe Base64 (-, _). JWTs and many web APIs use the URL-safe variant without padding. Before decoding:

  1. Replace - with + and _ with /.
  2. Append = characters until the string length is divisible by 4.

Standard decoders, including browser atob(), require valid padding for some inputs.

Recovering Original Text

After successful decoding, copy the plain text for use in editors, diff tools, or further processing. If you need to re-encode after editing, switch to Base64 Encode to produce a fresh encoded string.

Remember: decoding exposes whatever was encoded. If someone Base64-encoded a password (a common but insecure practice), the plaintext is immediately visible after decoding.

Worked Examples

Example 1 — Standard padded Base64 string

  • Input: SGVsbG8gV29ybGQ=
  • Decoded output: Hello World

Example 2 — Inspecting a JSON payload (such as a JWT middle segment)

  • Input: eyJ1c2VySWQiOjEwNCwicm9sZSI6ImVkaXRvciJ9
  • Decoded output: {"userId":104,"role":"editor"} (paste the result into the JSON Formatter or JSON Validator to pretty-print and check syntax).

Example 3 — UTF-8 accented characters

  • Input: Q2Fmw6k=
  • Decoded output: Café

If you need to re-encode edited text back into Base64, switch to Base64 Encode.

When Decoding Fails

| Symptom | Likely cause | |---------|----------------| | Invalid character error | URL-safe variant (-, _) or stray whitespace in the string | | Garbled Unicode output | Wrong byte interpretation — input may be binary, not UTF-8 text | | Empty output | Input was only padding characters or an empty string |

Why Process Text Here

  • Instant decoding with UTF-8 text recovery
  • Clear error messages for invalid or malformed input
  • Live output as you edit the encoded string
  • Useful for inspecting API responses, tokens, and config values
  • Decoding runs entirely in your browser

What to Watch For

  • Expects standard Base64 alphabet — URL-safe variants (- and _) are not auto-converted
  • Decodes to text only; binary output (images, PDFs) is not rendered
  • Whitespace in the input is trimmed but internal spaces invalidate the string
  • Padding characters (=) must be correct for some inputs to decode

Text Formats

Standard Base64UTF-8 encoded text payloadsPadded and unpadded strings (when the browser accepts them)

Your Text Stays Private

Base64 Decode processes all data locally in your browser. Your encoded strings are never sent to any server.

When Something Looks Wrong

Invalid Base64 string or decode failure

Remove line breaks, spaces, and non-Base64 characters. Ensure the string length is valid and add = padding if missing.

Decoded text shows garbled characters

The original may not be UTF-8 text — it could be binary data or a different encoding. This tool assumes UTF-8 text output.

URL-safe Base64 fails to decode

Replace - with + and _ with /, then add padding until the length is a multiple of 4.

Text Questions, Answered

Straight answers about working with text in your browser.

JWT payloads are URL-safe Base64. You may need to convert - to + and _ to / and add padding before pasting here. JWTs are not encrypted — only encoded.

The input likely represents binary data (an image, compressed file, or encrypted blob), not UTF-8 text. This tool displays text; binary will appear as mojibake.

Leading and trailing whitespace is trimmed. Spaces or line breaks in the middle of the string will cause decode errors unless removed.

Decoding itself is safe in the browser. However, the decoded content may contain sensitive data — handle output carefully and do not share decoded secrets.

Related Tools

More text utilities you might find useful.

Base64 Encode
Base64 encode for UTF-8 text. Decoding is a separate page.
JSON Validator
JSON validator that parses input and reports the syntax error. It does not reindent the document.
Featured
JSON Formatter
JSON formatter to pretty-print or minify JSON. Use JSON Validator when you only need the error.

Text Tools

  • Word Counter
  • Character Counter
  • Case Converter
  • JSON Formatter
  • JSON Validator
  • Base64 Encode
  • Base64 Decode
  • UUID Generator
  • Password Generator
  • Lorem Ipsum

On this page

  • What is Base64 Decoding?
  • Reading Encoded Data
  • URL-Safe and Padding Variants
  • Recovering Original Text
  • Worked Examples
  • When Decoding Fails
  • Why Process Text Here
  • Text Formats
  • Your Text Stays Private
  • When Something Looks Wrong
  • Text Questions, Answered
  • Related Tools

No account required

Open the tool and download the result in the browser. File size, batch, and format limits are listed on this page.