Convert text to URL-safe percent-encoding and decode it back, entirely in your browser.
The method behind this calculator
URLs can only contain certain characters, so spaces and symbols must be percent-encoded. Paste text to encode it for a URL, or paste an encoded string to decode it.
Everything runs locally β nothing is sent anywhere.
Getting your answer
- Choose encode or decode.
- Paste your text or encoded string.
- Copy the result.
How the number is calculated
unsafe characters become %XX using their byte values
The default scenario, worked through
Worked through, a text of hello world & friends? produces a result of hello%20world%20%26%20frieβ¦. Change any field and every figure updates as you type.
Questions people ask about this
What is URL encoding?
Replacing characters that arenβt URL-safe with a percent sign and their hex code β a space becomes %20.
When do I need it?
When putting text with spaces or symbols into a URL or query string, so it transmits correctly.
Is my text uploaded?
Never β the encoding runs as JavaScript in your own browser tab. Nothing you type is transmitted, logged or stored by this site.