Free tool

Multi-Base Encoder

Encode and decode in Base64, Base32, Base58, Base85, Hex, URL or HTML, all in one place. 100% in your browser.

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

This encoder brings together the most common text encoding formats used in development into one tool: Base64 (the most common, used in emails and APIs), Base32 (the RFC 4648 32-character alphabet, used for TOTP 2FA secrets), Base58 (the Bitcoin alphabet, with no 0, O, I or l), Base85 (RFC 1924 alphabet: 5 characters for every 4 bytes, instead of 4 characters for every 3 bytes in Base64), Hexadecimal, URL encoding (%20, %3D...) and HTML entities (&, <...). Type or paste your text, choose the format, and encode or decode instantly. The swap button lets you quickly reverse the direction of the conversion.

Features

  • ✓Base64, Base32, Base58, Base85, Hex, URL and HTML
  • ✓Encode and decode in the same tool
  • ✓Quick swap button
  • ✓Invalid input detection
  • ✓UTF-8 input and output: accents and emojis are encoded byte by byte
  • ✓100% in browser, no uploads

How to encode or decode text?

  1. 1

    Choose the format

    Base64, Base32, Base58, Base85, Hex, URL or HTML.

  2. 2

    Type or paste the text

    In the input box, either plain text or already-encoded text.

  3. 3

    Encode or decode

    Press the button that matches the direction you need.

  4. 4

    Copy the result

    The result is ready to copy with one click.

Alphabets, padding and edge cases

Base64 uses the standard A-Z, a-z, 0-9, + and / alphabet and pads with = to a multiple of 4 characters: "Hola" becomes SG9sYQ==. Base32 uses the RFC 4648 alphabet (A-Z and 2-7) and pads to a multiple of 8: "Hola" gives JBXWYYI=. When decoding, padding is optional and lowercase is accepted. Hex writes each byte as two lowercase digits, accepts spaces and a 0x prefix, and has no padding.

Base58 uses the Bitcoin alphabet, 1-9 followed by A-Z and a-z without 0, O, I or l, and has no padding. Each leading 0x00 byte becomes a 1, so the bytes 00 00 01 give 112, and the leading 1s come back as null bytes when decoding. That is why leading zeros survive a round trip. Decoding rejects 0, O, I and l because they are not in that alphabet.

Base85 uses the RFC 1924 alphabet (0-9, A-Z, a-z and 23 symbols). It is neither Ascii85 nor Z85. Each 4-byte group becomes 5 characters, and a final partial group of n bytes produces n+1 characters, with no padding: "Hola" gives NN;Rm and "Ho" gives NN). A single-character group is rejected when decoding.

Encoding works on UTF-8 bytes, so "ñ" takes two bytes and "😀" takes four. Decoding uses strict UTF-8, so invalid byte sequences show the error message instead of replacement characters.

URL uses encodeURIComponent: letters, digits and - _ . ! ~ * ' ( ) stay as they are, everything else is encoded, and spaces become %20. Decoding does not turn + into a space. HTML escapes & < > " ' as &amp; &lt; &gt; &quot; and &#39;. When decoding it recognises &amp; &lt; &gt; &quot; &apos; &nbsp; and decimal or hexadecimal numeric references such as &#39; or &#x27;; other named entities are left unchanged.

For a TOTP key, paste the Base32 string without spaces: it is accepted with or without padding, in upper or lower case. For a Bitcoin address, Base58 is the right alphabet, but this tool only converts the alphabet: it does not check the checksum or the address format.

The swap button puts the result into the input and the input into the result, so checking a round trip takes one click.

Frequently asked questions

Is my text uploaded to a server?

No. All the encodings are calculated with JavaScript directly in your browser.

What's the difference between Base58 and Base64?

Base58 removes characters that are easily confused when read by hand (0, O, I, l) and the + and / symbols, which is why Bitcoin uses it for addresses people copy manually.

What happens if I try to decode text that isn't valid in that format?

A message «The text isn't valid <format>.» appears. The tool rejects characters outside the format's alphabet, impossible lengths in Base32, single-character groups in Base85, an odd number of digits in Hex, malformed % sequences in URL and bytes that are not valid UTF-8.

Related tools

Embed Multi-Base Encoder on your site

Add Multi-Base Encoder to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/multi-base-encoder?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="Multi-Base Encoder — miguelacm.es"
></iframe>
View embed in new tab →