URL Encoder / Decoder
Percent-encode URLs and decode encoded strings safely.
Free to use · No sign-up · Runs in your browser · Your data is never uploaded.
What the URL Encoder / Decoder does
The URL encoder and decoder converts special characters to and from their percent-encoded form, so URLs and query strings work correctly.
How it works
URLs can only contain a limited set of characters. The tool replaces unsafe characters with a percent sign followed by their hexadecimal code, and reverses the process when decoding.
This is essential when building links with spaces, ampersands or non-English characters, which would otherwise break.
How to use the URL Encoder / Decoder
- 1Choose encode or decode.
- 2Paste your URL or text.
- 3Run the conversion.
- 4Copy the result.
- 5Use it in your links or code.
URL Encoder / Decoder questions
It is the method of representing characters that are not allowed in a URL using a percent sign and a hexadecimal code.
Encode the individual components, such as query values, rather than the whole URL, to avoid encoding the separators.
encodeURI preserves URL structure characters, while encodeURIComponent encodes them, which is what you want for query values.
Yes. Spaces are encoded as %20, the correct form for URLs.
Related SEO tools
Ready to build links that move rankings?
Use our vetted marketplace of 2,000 sites or let us run a done-for-you campaign with white-label reporting.