Loading...
Loading...
developer
Free URL encoder and decoder. Percent-encode text for safe use in URLs and query strings, or decode encoded text back. Fast and private.
Enter your values and select Calculate to see the result.
URLs can only contain certain characters. Spaces, accents and symbols such as & and ? must be percent-encoded so they are not mistaken for part of the URL's structure.
Enter your text and choose to encode or decode. The tool uses the same rules as JavaScript's encodeURIComponent, which is correct for query values and path segments but not for a complete URL. Decoding reports an error if the text contains a malformed sequence.
encodeURIComponent(text) / decodeURIComponent(text)
"hello world" becomes hello%20world.
URLs may only contain a limited set of characters. Spaces and symbols such as & or ? are replaced with a percent sign and a hex code, for example a space becomes %20.
It uses encodeURIComponent, which is right for query values and path segments. It also encodes characters like / and ?, so do not use it on a whole URL.
In form-style query strings a + stands for a space, so the decoder treats it that way.
The text contains a malformed percent sequence, such as % followed by characters that are not valid hex.