Skip to content

Base Encoding & Decoding Tool

Base encoding converts binary data into text using a limited set of characters. This tool supports Base64 (standard and URL-safe), Base32 (five variants), Base58, and custom alphabets—useful for everything from embedding images in HTML to generating cryptocurrency addresses.

Read the comprehensive Base Encoding Guide →

Encoding Format
Variant

Standard Base64 encoding for general-purpose use. Commonly used in MIME emails, data URIs, and JSON/XML.

Alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Padding: = (when needed)
Operation
Input Mode

Encoded Result

Supported Formats

FormatVariantAlphabetPaddingBest For
Base64StandardA-Z, a-z, 0-9, +, /

Yes (=)

General purpose, MIME, data URIs
URL-safeA-Z, a-z, 0-9, -, _NoJWT tokens, URLs, filenames
Base32RFC 4648A-Z, 2-7

Yes (=)

TOTP secrets, general use
Extended Hex0-9, A-V

Yes (=)

Hex sort order preservation
z-base-32ybndrfg8ejkm…NoHuman readability, Tahoe-LAFS
Crockford0-9, A-Z (no I,L,O,U)NoError tolerance, short IDs
Bech32qpzry9x8gf2t…NoBitcoin SegWit (alphabet only)
Base581-9, A-H, J-N, P-Z, a-k, m-zNoCrypto addresses, IPFS
CustomAny (2-256 chars)OptionalDomain-specific encoding

When to Use Each Format

Base64

  • Email attachments (MIME encoding)
  • Embedding images in HTML/CSS with data: URIs
  • Binary data in JSON or XML
  • HTTP Basic Authentication headers
  • JWT tokens and URL parameters (URL-safe variant)

Base32

  • TOTP/HOTP secrets (Google Authenticator)
  • Tor .onion addresses
  • Case-insensitive identifiers
  • Recovery codes and license keys

Base58

  • Cryptocurrency addresses (Bitcoin, Ethereum)
  • IPFS content identifiers
  • Short codes avoiding ambiguous characters (0/O, 1/I/l)

Custom Alphabets

  • Domain-specific encoding schemes
  • Legacy system compatibility
  • Any alphabet from 2 to 256 characters

Security Warning

Base encoding is not encryption. Anyone can decode it instantly. Never use base encoding to protect sensitive data.

  • Don’t encode passwords (use bcrypt or Argon2)
  • Don’t encode secrets or API keys (use AES or RSA encryption)
  • Do use it for encoding binary data as text
  • Do use it for data transmission and compatibility

Learn More

The Base Encoding Guide explains how each algorithm works, with examples, performance comparisons, common pitfalls, and RFC specifications.