URL encode

Encode characters for safe use in URI components: spaces, Unicode, reserved symbols.

Paste text to percent-encode it for query parameters, fragments, or redirects. This URL encode tool follows encodeURIComponent behavior so results match JavaScript and most backends.

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.