Guides/Tool Guides

Base64 Encode / Decode Guide

Base64 conversion.

Overview

Encode or decode Base64 for quick debugging and safe transport of text and binary-as-text. Common uses include HTTP Basic auth, JWT segments, data URIs, and API parameters. Runs locally in your browser.

Pro time-savers

  • Batch encode/decode (per line)

Use cases

  • Decode an Authorization header value to verify username/password formatting.
  • Encode JSON/text into Base64 for an API parameter or test fixture.
  • Inspect data URI payloads by decoding the Base64 part.

Common pitfalls

  • Base64 is not encryption. Don’t share secrets assuming it’s “hidden”.
  • Some systems omit padding (=) or insert line breaks; remove whitespace and retry decoding.
  • JWT uses Base64URL, not standard Base64—use the Base64URL tool for JWT segments.

FAQs

Why does Base64 decode fail?

The input may include invalid characters, missing padding, or hidden whitespace/newlines. Remove spaces/newlines and try again.

Is UTF‑8 supported?

Yes. Text encoding/decoding uses UTF‑8.

Base64 vs Base64URL?

Base64URL uses URL-safe characters (- and _) and often omits padding. Use the Base64URL tool for JWT-like strings.

Is Base64 encryption?

No. Base64 is reversible encoding, not encryption.

Examples

Input

hello

Output

aGVsbG8=