---
title: "Base64 decode"
description: "Decode Base64 strings back to text or download decoded bytes. Local-only processing in your browser."
---

> HTML: https://trendalyzer.app/tools/base64-decode/
> Index: https://trendalyzer.app/llms.txt

# Base64 decode

Base64 decode reverses a standard or URL-safe 64-character alphabet sequence back to UTF-8 text. Whitespace is ignored; illegal characters fail immediately. Use it to unpack data that was Base64-packed for transport through headers, APIs, or MIME payloads, and download raw bytes when the payload is binary rather than text.

Readiness: experimental

Input types: text

Output types: text

## Limits

- Decodes UTF-8 text and can download the decoded bytes as a local binary file.

## Warnings

- Fails on input strings that do not map to valid UTF-8 sequences.

## Example

Input: VHJlbmRhbHl6ZXI=

Output: Trendalyzer

## Steps

1. **Paste the Base64 string** — Standard or URL-safe alphabets are fine; spaces and line breaks are stripped before decoding.
2. **Run locally** — Four-character blocks map back to bytes. Invalid characters clear the previous output and show an error.
3. **Copy text or download bytes** — Use Copy for UTF-8 text, or Download decoded bytes when the payload is binary.

## When text looks wrong

If the output is mojibake, the original payload was probably binary. Prefer **Download decoded bytes** and inspect with a hex viewer rather than treating the textarea as UTF-8.

## Padding and variants

Trailing `=` characters are padding. URL-safe strings that use `-` and `_` are normalized before `atob`.

## FAQ



### Why do some Base64 strings decode to meaningless gibberish?

If the decoded bytes do not form valid UTF-8 text (e.g. they represent an image file, a compiled binary, or compressed gzip data), rendering them as a text string will result in unreadable replacement characters.

### Does this decoder support URL-safe Base64?

Yes. The decoder automatically handles URL-safe variants by translating '-' to '+' and '_' to '/' before decoding.

### Is whitespace allowed in the input?

Yes. All whitespace characters (spaces, tabs, newlines) are safely stripped from the input string prior to decoding.
