URL encoder / decoder
Percent-encode and decode URL strings and query components.
Loading tool…
About the url encoder / decoder
Percent-encodes and decodes URL text, with a choice between component encoding — which escapes the reserved characters &, =, ?, / and # — and whole-URI encoding, which leaves them intact. Picking the wrong one is the usual cause of broken query strings.
Frequently asked questions
Component or whole URI?
Use component encoding for anything going inside a query parameter value. Use whole-URI encoding when tidying an entire address that already has its structure and you only want spaces and accents escaped.
Why is a space sometimes + and sometimes %20?
The plus form belongs to HTML form submission encoding. Percent-twenty is correct everywhere else, including URL paths, and is what this tool produces.
Often used alongside
Text to Unicode
Convert text to Unicode code points or HTML entities, and decode them again.
DevelopmentSQL formatter
Format SQL for a specific dialect with consistent indentation and casing.
MathPercentage calculator
Percentage of a number, what percent one number is of another, and change.