Base64 Encode / Decode — Encode Text to Base64 and Back

Encode text to Base64, or decode it back.

Tool Panel

Loading tool...
About Base64 Encode / Decode

Base64 represents binary data with 64 printable characters, so binary can travel through text-only protocols. Encode: encodes any data into strings of the 64 characters A-Z, a-z, 0-9, + and / Decode: restores the original data from a Base64 string URL-safe mode: replaces + with -, / with _, and drops the = padding

  • 1

    Encodes through UTF-8 first, so Chinese text, emoji and line breaks survive the round trip.

  • 2

    Encode and decode live on the same page and update as you type, with no button to press.

  • 3

    The output is standard Base64 with = padding, not the URL-safe -_ variant; use the Base64URL tool for that alphabet.

  • 4

    Text only: the tool never reads images or files, which have a separate Image to Base64 page.

  • 5

    Invalid Base64 raises an error instead of quietly returning mojibake.

Related tools

View all
Base64URL Encode
Encode & Crypto

Base64URL Encode

Produce URL-safe Base64 without padding characters.

Encode & Crypto
Base32 Encode / Decode
Encode & Crypto

Base32 Encode / Decode

Encode or decode text using the Base32 alphabet.

Encode & Crypto
Base36 Encode / Decode
Encode & Crypto

Base36 Encode / Decode

Encode or decode numbers and text in Base36.

Encode & Crypto
Base58 Encode / Decode
Encode & Crypto

Base58 Encode / Decode

Encode or decode with Base58, the alphabet Bitcoin addresses use.

Encode & Crypto
Binary Encode
Encode & Crypto

Binary Encode

Turn text into its 0 and 1 representation.

Encode & Crypto
Binary Decode
Encode & Crypto

Binary Decode

Turn a binary string back into readable text.

Encode & Crypto

Other comparisons