close
Base64 hub28 toolsBrowser-first privacy

Base64 tools

Encode text and files, decode Base64 payloads back into images, PDFs, audio, video, or text, and clean up malformed strings without uploading your data.

Base64 to ASCII Decoder
Decode Base64 bytes and display printable ASCII
Base64 to Audio Decoder
Decode Base64 into a playable audio file
Base64 Basic Auth Decoder
Decode HTTP Basic Authorization headers
Base64 to File Decoder
Decode Base64 into a downloadable file

Decoders

Turn Base64 back into text, bytes, files, media, and structured values.

Encoders

Convert text, files, images, PDFs, audio, video, and web snippets into Base64.

Utilities

Validate, normalize, repair, inspect, and convert the formats around Base64.

How Base64 works

Base64 groups binary data into 6-bit chunks and maps each chunk to a printable character. It is useful when bytes must travel through text-only systems.

When to use it

Use Base64 for small binary payloads in JSON, email, HTML, CSS, authorization headers, and debug fixtures. Avoid it for large production assets when normal file hosting is available.

Privacy model

The Base64 tools run in your browser. Files and pasted strings are processed on your device unless a separate tool page explicitly says otherwise.

Base64 is not encryption

Base64 is reversible encoding. It can make bytes safe to copy through text systems, but it does not hide secrets. If a Base64 string contains credentials, API keys, or personal data, treat the decoded value as sensitive.

What is a Base64 encoder/decoder?

A Base64 encoder/decoder turns binary or text data into a 64-character alphabet so it can travel through systems that only accept text. It also reverses the process, returning the original content. Use it when you need to move tokens, small images, or configuration values through URLs, JSON, or email without corruption. This tool runs locally, so nothing leaves your device.

How to use the Base64 encoder/decoder

  1. Paste your input: Add plain text to encode or a Base64 string to decode. The tool handles any length and supports Unicode.
  2. Pick the direction: Choose Encode or Decode.
  3. Get results: The output appears instantly. Copy it or download as a text file for use in code or configs.

Why use this Base64 tool?

  • Safe transmission: Protects binary or special characters when sending data through text-only channels.
  • Developer friendly: Validate API payloads, email attachments, and data URIs without opening a terminal.
  • Local privacy: All work stays in your browser, so secrets like API keys remain private.

Use case 1: Embed small assets

Convert an icon to Base64 and drop it into a CSS or HTML data URI to avoid extra requests.

Use case 2: Move tokens in requests

Encode session tokens before adding them to URLs or JSON to avoid breaking characters.

Use case 3: Email attachments

Quickly decode a Base64 email attachment string to verify its contents without saving files.

Examples

Basic example

Input (encode): Hello, World!
Output: SGVsbG8sIFdvcmxkIQ==

Advanced example

Input (encode): {"message":"Hello 世界","emoji":"🌍"}
Output: eyJtZXNzYWdlIjoiSGVsbG8g5LiW55WMIiwiZW1vamkiOiLwn4yNIn0=

Common errors

Invalid Base64 string

If decoding fails, remove spaces or line breaks and ensure only A–Z, a–z, 0–9, +, /, and = appear. For URL-safe strings, switch to the URL-safe option.

Garbled decoded text

Mismatched character encoding can scramble output. This tool uses UTF-8; re-encode your source in UTF-8 and try again.

Tips and proven approaches

  • Expect about 33% size growth after encoding; avoid it for large binaries.
  • For URLs, use the URL-safe alphabet (- and _) to prevent escaping.
  • Validate secrets before storing by decoding once to confirm the content.

Related tools

Privacy and security

Encoding and decoding happen entirely in your browser. No inputs or outputs are sent to servers, so keys, tokens, and files stay private.