What is URL Encode / Decode?
Replaces reserved and unsafe URL characters with a percent symbol (%) followed by their two-digit hexadecimal ASCII/UTF-8 value (RFC 3986).
How to Use This Calculator
- Select Encode or Decode.
- Paste URL or query string.
- Copy converted URL-safe output.
The Mathematical Formula & Variables
Spaces -> %20; & -> %26; ? -> %3F; = -> %3D; / -> %2F
Step-by-Step Worked Example
Scenario: Encoding "mortgage rates & terms".
- Spaces become %20.
- Ampersand (&) becomes %26.
- Result = "mortgage%20rates%20%26%20terms".
Result: mortgage%20rates%20%26%20terms
Frequently Asked Questions
What is the difference between + and %20 for spaces?
%20 is standard RFC 3986 percent-encoding for all URL components. The plus sign (+) is only valid for spaces in application/x-www-form-urlencoded query strings.