NoUpload

URL encode and decode in your browser

There are two right answers to “URL encode”, and picking the wrong one is why encoded links break. Component escapes everything; whole-URL keeps the separators that give a URL its structure.

  • Files never leave your device
  • No account, no queue
  • Works offline
  • No upload step
Direction
Scope
Plain text0 chars
Percent-encoded0 chars
Runs in this tab. Nothing is uploaded.

How it works

  1. 1

    Choose the scope

    Component for a single query value or path segment; whole URL when the slashes and question marks should stay.

  2. 2

    Paste the text

    Encoding and decoding happen as you type, including multi-byte characters.

  3. 3

    Copy the result

    Malformed percent-escapes are reported instead of silently producing mojibake.

Frequently asked questions

What is the difference between the two modes?

encodeURIComponent escapes / ? & = # as well, which is what you want for a parameter value. encodeURI leaves them alone, which is what you want before putting a whole URL into a place that expects one.

Why do spaces become %20 instead of +?

Both are valid, but only in different contexts. %20 is correct in a path or fragment; + means space only inside application/x-www-form-urlencoded bodies. This tool produces %20, which is never wrong.

Why does decoding fail?

A bare % that is not followed by two hex digits is not valid percent-encoding. That happens when text has already been encoded twice, or when a literal % was typed.

Does it handle emoji and accents?

Yes. The input is UTF-8 encoded first, so a single emoji becomes four percent-escapes rather than a mangled byte.

Is the text sent anywhere?

No — this is a pure string transform in the page.

Other tools