URL Encoder / Decoder
Percent-encode text for safe use in a URL, or decode a percent-encoded string back to plain text.
Inputs
Saved Scenarios
— select 2+ to compare| Metric | |
|---|---|
Result
hello%20world%20%26%20more%3Dstuff%3F
Spark says
Formula
- HH
- — The character's byte value in two-digit hexadecimal
What is the URL Encoder / Decoder?
URLs can only safely contain a limited set of characters — percent-encoding replaces anything else (spaces, &, =, ?, non-ASCII characters) with a %XX sequence so the value can be safely embedded in a URL, query string, or form submission.
How to use it
- 1 Choose encode or decode mode.
- 2 Enter text or a percent-encoded string.
Worked examples
Frequently asked questions
Why does a space become %20?
Space isn't a valid character inside most parts of a URL — 0x20 is its ASCII byte value in hex, so %20 is its percent-encoded form (the older '+' convention is specific to form submissions, not general URL encoding).