Paste text to encode. Uses the same rules as encodeURIComponent in JavaScript.
Text
Encoded
How it works
Non-ASCII characters are UTF-8 encoded, then each byte is percent-encoded.
Letters, digits, hyphen, underscore, period, ! ~ * ' ( ) stay unencoded; others become %XX.
When to use
Query parameters, path segments (with caveats), and redirect URLs often need encoding.
Note
Encoding is not encryption. Do not rely on it to hide data.
Common questions
- encodeURI vs encodeURIComponent?
- This tool matches encodeURIComponent (stricter; encodes more characters).
- Plus vs %20?
- encodeURIComponent uses %20 for spaces, not +.
- Slashes encoded?
- Yes: slashes become %2F here, which is what you want inside a query value.
- Runs offline?
- Yes.