Encrypt Online
Choose theme
Privacy All tools run entirely in your browser.

Base64 Decode

Decode Base64 back to readable text

Safety note: Avoid pasting real secrets. For local use, see the CLI example below.
Input + outputDecode Base64 back to readable text
Base64 Decode Tool

Use this Base64 decoder to convert Base64 strings back into readable text or original bytes. It helps inspect API payloads, logs, and encoded config values without leaving your browser.

How to Use the Base64 Decoder
  1. Paste the Base64 string you want to decode.
  2. Click "Decode" to convert it back.
  3. Copy the output and use it in your app or workflow.
What is Base64 Decoding?

Base64 decoding reverses the 64-character mapping and returns the original bytes. It does not require a key; it simply undoes Base64 encoding.

Decoding vs. Decrypting

Decoding and decrypting are different operations. Decoding is a reversible conversion with no secret. Decrypting reverses encryption and requires a key or passphrase to restore protected data.

For secure decryption needs, please visit our Decrypt Online page.

How to Base64 Decode in Python

In Python, use the built-in base64 module:

import base64

encoded_str = "SGVsbG8sIFdvcmxkIQ=="
decoded_bytes = base64.b64decode(encoded_str)
decoded_str = decoded_bytes.decode("utf-8")
print(decoded_str)  # Outputs: Hello, World!
How to Base64 Decode in JavaScript

In JavaScript, use the atob() function for ASCII input:

const encoded = "SGVsbG8sIFdvcmxkIQ==";
const decoded = atob(encoded);
console.log(decoded);  // Outputs: Hello, World!
Do This Locally (CLI)

Decode Base64 values from the terminal:

# Decode a Base64 string
printf '%s' "SGVsbG8sIFdvcmxkIQ==" | base64 -d

# macOS uses: base64 -D
What Types of Input Can Be Decoded?

Paste any Base64 string, including encoded text, JSON, XML, or data URIs. If the output looks unreadable, the original content was binary or used a different character encoding.

Why Use Base64 Decode?

Use Base64 decode online to inspect payloads, validate API output, or decode values embedded in logs and configuration files. Everything runs in the browser.

Base64 Decoded Data Examples

Examples include:

  • Encoded: "SGVsbG8sIFdvcmxkIQ==" decodes to "Hello, World!"
  • Encoded: "eyJuYW1lIjoiSm9obiJ9" decodes to '{"name":"John"}'
Base64 Decoding FAQ
What does Base64 decode do?

Base64 decoding converts Base64 text back into the original bytes or readable text.

Why does decoded text look unreadable?

The original data may be binary or use a different character encoding. Try handling it as bytes in your application.

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption, and it does not provide security.

EO
Developed by the Encrypt-Online Team, a group of experienced web development and security professionals dedicated to building simple and effective tools. Learn more about our approach on our About Us page.