URL Encode
Percent-encode text for safe use in URLs.
What is URL Encode
URL encoding (percent encoding) converts characters that cannot appear in a URL into a %XX format.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Two different jobs, two different functions
Percent-encoding has two legitimate scopes in JavaScript and mixing them is the number one URL bug. encodeURIComponent escapes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ), which makes it right for a single parameter value. encodeURI leaves : / ? & = # alone, which makes it right for a whole URL you are only cleaning up.
Wrap an entire URL in encodeURIComponent and https://example.com/a?b=1 becomes https%3A%2F%2Fexample.com%2Fa%3Fb%3D1 — a single opaque path segment that no server will route. Encode only a value with encodeURI and an & inside that value survives, splitting one parameter into two on the receiving end.
Non-ASCII is bytes first, percent signs second
Characters outside ASCII are encoded as UTF-8 bytes, and each byte becomes its own %XX. A single Chinese character is three bytes and therefore three escape sequences, so the encoded form is nine characters long. An emoji is four bytes and becomes twelve characters. That multiplication is why URLs carrying CJK slugs look enormous in logs.
Spaces become %20 here rather than +. Both are read as a space by form parsers, but only + is specific to the form-encoding convention; %20 is legal in every URL context including the path, and it is the only one that survives a path segment intact.
What to leave unencoded on purpose
Encoding is not sanitisation. Percent-encoding a value does not make it safe for SQL, HTML or a shell — those layers have their own escaping rules, and a string that is perfectly valid percent-encoding can still be a directory traversal once the server decodes it. Decode-then-validate is the order that matters.
Also expect the output to differ from what other tools show for the same input. Libraries disagree on whether ~ * ' ( ) and ! need escaping; some legacy encoders also emit ! as %21. Both forms decode identically, so never compare encoded strings for equality to test whether two values are the same value.
How to use
- 1.Enter text
- 2.Get encoded output
- 3.Use it in a URL
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Output is deterministic — verify it against any other implementation | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
Why encode a URL?
To safely handle characters like spaces and non-ASCII text in URLs.
Can I decode?
Yes, use the companion URL decode tool.
What this kind of conversion cannot keep
Encoding and hashing run through the browser's Web Crypto API or a pure-JavaScript implementation. The output is deterministic: the same input always produces the same digest, so you can verify a result against any other tool.
More in Encoding
On this page
- What is URL Encode
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →