Encode and decode tools

Encoders and decoders that run in your browser: Base64, JWT, URL and HTML escaping, image data URLs, binary and hex, number bases and Morse.

Which tool to use

Encoding is not encryption

Base64, percent-encoding and HTML entities can be reversed by anyone, with no key. They make data safe to transport, not secret. The payload of a JWT is only Base64url text, so never put anything confidential in one. ROT13 and the Caesar cipher are puzzles rather than protection.

When the goal is secrecy, use AES Encrypt / Decrypt. To store a password, use a bcrypt hash.

Privacy

Tokens and encoded strings often contain credentials. Decoding happens in the page and no request is made, so a pasted token is not transmitted.

Frequently asked questions

Is Base64 a form of encryption?
No. Base64 is an encoding that represents bytes as 64 printable characters so they survive text-only channels. Anyone can decode it without a key, so it provides no secrecy.
What is the difference between URL encoding and HTML encoding?
URL encoding replaces characters that are not allowed in a URL with a percent sign and two hex digits, such as %20 for a space. HTML encoding replaces characters that have meaning in markup with entities, such as &lt; for <. Each protects a different context.
Is it safe to decode a JWT online?
Only when the decoder runs locally. XUtil decodes the token in the browser with no network request. A JWT is still a working credential until it expires, so avoid pasting production tokens into tools you have not checked.
How is text converted to binary?
Each character is mapped to a number by a character encoding, usually UTF-8, and each resulting byte is written as eight bits. The letter A is 65, which is 01000001.