Encode text for a URL
Encode a text's special characters (spaces, symbols, accents) so it can be safely used as part of a URL.
Processed on your device. Nothing is sent to any server.
Applies the standard percent-encoding algorithm (encodeURIComponent), replacing each unsafe character with its %XX representation.
Use cases
- Encoding a value before adding it to a query string.
- Preparing text with spaces or symbols for a URL.
- Encoding a parameter to pass to an API.
How it works
- 1
Type your text
Type or paste the text you want to encode.
- 2
Encode it
Click Encode and copy the result.
Technical details
- Example: "price > $100" becomes price%20%3E%20%24100.
- Spaces become %20, not +. Letters, digits and the characters - _ . ! ~ * ' ( ) are left unencoded.
- Use it on individual values, not a full URL: it would also encode : / ? & and the address would stop working.
Frequently asked questions
Does it also encode the / character?
Yes, encodeURIComponent encodes all reserved characters including /, ideal for individual query string values (not a full URL).