CompleteSEOTools
Home › Developer Tools › Encoder and Decoder

Encoder and decoder

Switch between plain text and eight common encodings, in both directions.

About Encoder and Decoder

Developers meet the same few encodings every day. Base64 turns bytes into text for emails and tokens. URL encoding makes text safe for a web address. HTML entities keep angle brackets from being read as tags. This page puts them in one place, with a tab for each and a switch between encoding and decoding. Text is handled as UTF-8, so accented letters, symbols and emoji survive a round trip. Nothing leaves your browser.

  • Reading what is inside a Base64 value from an API or a config.
  • Making a query string value safe for a link.
  • Escaping a snippet of HTML so it can be shown as text.
  • Checking what a hex or binary dump says in plain letters.

How to use Encoder and Decoder

1

Step 1

Pick an encoding tab and choose Encode or Decode.

2

Step 2

Type or paste your text.

3

Step 3

Copy the result, or press Swap to feed it back in and reverse the direction.

Good to know

  • Base64 is not encryption. Anyone can decode it, so do not use it to hide a password.
  • Use the component mode for URL values and the full mode only for a whole address, which keeps characters such as slashes and question marks.
  • ROT13 only shifts letters by 13 places. It is a spoiler mask, not security.

Common questions

Why does decoding say the text is not valid?

Base64 and hex must be complete, and the decoded bytes must form valid UTF-8 text. If they hold a picture or other binary data, they will not display as text.

What is the difference between Base64 and Base64URL?

Base64URL swaps the plus and slash characters for a dash and an underscore and usually drops the equals padding, so the value can sit in a URL or a token without escaping.

Are emoji handled correctly?

Yes. Text is converted to UTF-8 bytes first, so an emoji is four bytes in Base64 and hex, and a surrogate pair in Unicode escapes.