How we worked it out
Updated as you change the numbers.
- Each unsafe character is turned into its UTF-8 bytes, each written as % and two hex digits (a space is %20).
Method and assumptions
Encoding a value escapes everything except letters, digits and - _ . ! ~ * ' ( ). Encoding a whole URL leaves the characters that give a URL its structure (: / ? # & =) alone. When decoding a value, + is treated as a space, as in form submissions.
Questions
How is a space encoded in a URL?
As %20 (or + in form-encoded query strings).
Sources
Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.