URL Encode

Percent-encode text or URLs instantly and for free.

This tool runs entirely in your browser. Your files are never uploaded to a server.

What this tool does

Percent-encodes text using the same rules as JavaScript's `encodeURIComponent`, replacing every character that isn't a letter, digit, or one of `- _ . ! ~ * ' ( )` with a `%` followed by its hexadecimal byte value, so the result is safe to place inside a URL.

How to use it

Type or paste text, a query string, or a full URL into the input box; the percent-encoded output appears automatically below it. Copy it with the copy button when you're ready to use it.

Worked example

Encoding `a b&c=1` produces `a%20b%26c%3D1`: the space becomes `%20`, the ampersand becomes `%26`, and the equals sign becomes `%3D`, since all three have special meaning in a URL's query string.

Reserved characters and query strings

Characters like `& = ? #` are left encoded rather than passed through, which is exactly what's needed when placing a value inside a query parameter — encoding a whole URL's reserved structural characters would break it, so this tool is meant for individual values, not entire URLs.

Spaces: %20 vs +

This tool encodes spaces as `%20`, matching the URI percent-encoding standard used in paths and most query values; some older systems instead expect `+` for spaces in `application/x-www-form-urlencoded` form bodies specifically, which is a different, narrower convention.

Limitations

This encodes one string at a time and does not parse or validate URL structure — it will not tell you whether the surrounding URL is well-formed, only produce a percent-encoded version of what you provide.

Privacy

Encoding runs entirely in your browser via client-side JavaScript; the text you enter is never uploaded to a server or stored.

Frequently Asked Questions

What does URL encoding do?
It replaces characters that aren't allowed or safe in URLs (like spaces, &, or ?) with a percent sign followed by their hex code, so the string can be used safely in a link or query parameter.
How do I use this tool?
Type or paste your text or URL into the input field and the percent-encoded result appears instantly — just copy it.
Is this tool free and private?
Yes, the encoding happens entirely client-side in your browser. No data is uploaded, and the tool is completely free with no sign-up.