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.
- Base64 Encoder / Decoder: Base64, Base32 and Base58 in both directions.
- JWT Decoder: Read a token’s header and payload without sending it anywhere.
- URL Encoder / Decoder: Percent-encode text for URLs, or decode it back.
- URL Parser: Break a URL into host, path, query and fragment.
- HTML Entities: Escape &, < and > for HTML, or unescape them.
- Base64 Image Encoder: Image to a Base64 data URL for CSS or HTML, or decode one back.
- Text to Binary / Hex Converter: Text to binary, hex, octal or decimal, and back.
- Base Number Converter: Binary, octal, decimal, hex and any base up to 36.
- Morse Code Translator: Text to dots and dashes, and back.
- ROT13 / Caesar Cipher: Shift letters by any amount, or ROT13 in one click.
- SAML Decoder: Decode a SAMLRequest or SAMLResponse to readable XML, with issuer, NameID, conditions and attributes.
Which tool to use
- Base64, Base32 or Base58 text: the Base64 Encoder / Decoder. For an image as a data URL, use the Base64 Image Encoder.
- A token from an Authorization header: the JWT Decoder shows the header and payload. To check the signature, use the JWT Encoder & Verifier.
- Single sign-on: the SAML Decoder turns a SAMLRequest or SAMLResponse into readable XML and lists the issuer, NameID, conditions and attributes.
- Query strings and links: the URL Encoder / Decoder percent-encodes text, and the URL Parser splits a URL into host, path, query and fragment.
- Text going into a web page: HTML Entities escapes or unescapes characters such as &, < and >.
- Bits and bases: Text to Binary / Hex converts text to binary, hex, octal or decimal, and the Base Number Converter converts a number between any bases up to 36.
- Classic codes: the Morse Code Translator and the ROT13 / Caesar Cipher.
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 < 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.