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.