Skip to content

Free URL Encoder & Decoder

Encode special characters in URLs using percent-encoding and decode percent-encoded URLs back to readable text. Free, with no sign-up required — everything happens right in your browser, so nothing you enter is sent to a server.

💻 URL Encoder & Decoder

How the URL Encoder & Decoder Works

Choose Encode or Decode and paste your text or URL. With Component mode switched on, encoding uses encodeURIComponent, which converts every character that is not a letter, digit or one of - _ . ! ~ * ' ( ) into a percent code such as %20 for a space, which is what you want for a query parameter value. With it off, encoding uses encodeURI, which keeps characters that structure a URL, such as : / ? # & and =, so a whole address stays usable.

Non-ASCII characters are first converted to UTF-8 and each byte is written as a percent code, so the letter e with an accent becomes %C3%A9. Choosing the right mode matters: encoding a full URL in Component mode would also escape its slashes and colons and break it, while encoding a parameter value in URL mode would leave an ampersand that splits the query. When decoding, the tool reports an error if the text contains a percent sign not followed by two hexadecimal digits or an invalid sequence.

Practical Use Cases

  • Encode a search term or value before adding it to a query string.
  • Decode a long percent-encoded address from a log, redirect or tracking link.
  • Make a URL containing spaces or special characters safe to share.
  • Check what a strange-looking %xx sequence stands for.

Frequently Asked Questions

encodeURI is for entire URLs and leaves characters such as / ? # & = alone. encodeURIComponent is for single parts, such as parameter values, and escapes those characters as well.
Percent encoding writes unsafe characters as a percent sign and the two-digit hexadecimal code of the byte. A space is byte 0x20, so it becomes %20. Some forms use a plus sign instead.
The text contains a percent sign that is not followed by two valid hexadecimal digits, or a sequence that does not form a valid UTF-8 character.
They are converted to UTF-8 bytes, and each byte is written as a percent code. For example, the euro sign becomes %E2%82%AC.
No. The conversion runs in your browser.