URL encoder and decoder
Percent-encode text for use in a URL, or decode it back.
How it works
Percent-encodes text so it can travel safely in a URL, or decodes it back to readable form.
Two encodings are offered because they are not the same. Component encoding escapes everything that has meaning in a URL, including & = ? # and /, and is what you want for a single query-string value. Full-URI encoding leaves those structural characters alone, and is what you want when encoding a whole URL that must stay a working URL.
Using the wrong one is the usual cause of a link that breaks at the first ampersand: encoding a whole URL with component encoding turns its own separators into %26 and %3D, and the result is no longer parseable as a URL.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- What is the difference between the two encode modes?
- Component encoding escapes URL-structural characters like & = ? and /, for use inside a single parameter. Full-URI encoding leaves them intact so a complete URL stays valid.
- Why does %20 appear instead of a space?
- Space is not legal in a URL, so it is percent-encoded as %20. In query strings a plus sign is also sometimes used for the same purpose.
Related pages
- Word and character counter Words, characters, sentences, paragraphs and reading time, counted as you type.
- Typing speed test Measure words per minute and accuracy on a one, two or five minute test.
- Remove duplicate lines Strip repeated lines from a list, keeping the first occurrence of each.
- Sort lines alphabetically Sort a list of lines A–Z, Z–A, by length, or numerically.
- JSON formatter and validator Pretty-print, minify and validate JSON, with the exact position of any error.
- Text compare Compare two blocks of text and see which lines were added, removed or changed.
- Regex tester Test a regular expression against sample text, with matches and capture groups shown.
- Case converter Convert text between upper, lower, title, sentence, camel, snake, kebab and other cases.
- Remove empty lines Delete blank lines from a block of text, optionally collapsing runs to one.
- Find and replace Replace every occurrence of a string in pasted text, with optional regex.