LocalExcelTool
Get started

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. 1.Enter text
  2. 2.Get encoded output
  3. 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.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveOutput is deterministic — verify it against any other implementationThe same — the conversion is the same maths

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