Skip to content
tools.best

Browse all tools

Encoding Tools

Base64, URL encoding, hex, binary and character codes, in both directions.

An encoding is a different way of writing the same data. Nothing is hidden and nothing is lost: anyone can reverse it. That makes these tools useful for reading and preparing data, and useless for keeping a secret.

Pick the tool by the notation you have in front of you:

  • Letters, digits, +, / and = at the end, such as SGVsbG8=: Base64.
  • Percent signs followed by two characters, such as hello%20world: URL encoding.
  • Pairs of the characters 0–9 and a–f, such as 48 65 6c 6c 6f: hexadecimal.
  • Groups of eight zeros and ones: binary.
  • Decimal numbers such as 72 101 108 108 111: ASCII character codes.
  • Numbers from 1 to 26: the letters to numbers code, A=1 to Z=26.

Every tool works in both directions. Choose the direction above the editor, or press Swap to send the result back through the other way.

Text is always treated as UTF-8, the encoding of the web, so accented letters, non-Latin scripts and emoji are handled correctly and show up as two to four bytes each. When the input cannot be decoded, the tool says what is wrong and where, instead of printing garbage.

All of it runs in your browser from one small engine that is covered by unit tests, including the test vectors of RFC 4648 for Base64. The text you paste is not sent to a server. For Base64 that contains a picture, use Base64 to image; for a fingerprint of a text, the hash generator.

"Hello, world!" in five encodings from the encoding tools: Base64 SGVsbG8sIHdvcmxkIQ==, URL-encoded Hello%2C%20world!, hex 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21, decimal codes 72 101 108 108 111 44 32 119 111 114 108 100 33 and A1Z26 8-5-12-12-15, 23-15-18-12-4!
All five can be turned back into the original text; none of them hides anything.

All encoding tools

Sources