URL decode

This will encode or decode base64, urlencode, rot13 or htmlentities to its counterpart.

How to decode a URL

  1. Paste the encoded text, a query string or a whole URL into the Input box. URL decode is already selected.
  2. Press Submit.
  3. Read or copy the decoded text in the Output box.

Examples

  • caf%C3%A9+au+lait%21 becomes café au lait!
  • Gr%C3%BC%C3%9Fe+aus+K%C3%B6ln becomes Grüße aus Köln
  • q=a%26b%3Dc becomes q=a&b=c

How it decodes

  • Every %XX code (two hex digits) becomes the byte it stands for. Several codes in a row form one UTF-8 character, such as %C3%A9 for é.
  • A plus sign becomes a space, as in HTML form data. If a real + was meant, it should have been sent as %2B.
  • A % that isn't followed by two hex digits, as in 100%, is left as it is.
  • The text is decoded once. If the result still contains % codes (for example %2520 becomes %20), it was encoded twice: submit the output again.

Where you need this

Decoding helps when you read server logs, debug redirect and tracking links, inspect form submissions or check what an API actually received. Search terms and non-English page names in links are almost always percent-encoded.

FAQ

Is this the same as JavaScript's decodeURIComponent? Almost. The difference is the plus sign: decodeURIComponent leaves + alone, this tool (like PHP's urldecode) turns it into a space.

Need the other direction? Use URL encode.


Base64 decode encode

Base64 is a byte sequence of 8-bit padded ascii in mime.

More: Wikipedia and RFC 2045

URLencode decode encode

Tyically used for passing strings and variables between web pages

More info: php.net and RFC 3986


ROT13 encode

Rotates the characters 13 places. Since the basic latin1 alphabet has 26 characters, performing rot13 on a string encrypts it. Do it twice, and it's decrypted.

More info: Wikipedia and php.net

HTMLentities decode encode

Encodes or decodes all characters that have a HTML equivalent entity.

More info: php.net and w3.org