URL Encoder

Encode and decode URLs

Loadingโ€ฆ

Was this tool helpful?

About this tool

This tool percent-encodes text so it can be safely placed inside a URL, and decodes it back. The default screen preloads `https://nol.so/search?q=ladder+game&page=1` and encodes it with the default mode, component (encodeURIComponent), so the slashes in https:// (%2F), the question mark (%3F), and the & (%26) all get turned into percent codes on the right. Toggle between encodeURIComponent, for encoding a single query-parameter value, and encodeURI, for encoding a whole URL, with the buttons. Keep in mind this is a notation change, not encryption โ€” anyone can reverse it back to the original, so never use it to hide a value.

How to use

  1. Use the component/whole buttons to choose between encodeURIComponent and encodeURI.
  2. Tap one of the sample buttons (full URL, search text, special characters) to fill in an example instantly.
  3. Type or paste text or a URL into the 'Plain' box on the left and the encoded result appears instantly on the right.
  4. Conversely, paste a percent-encoded string into the right box to restore the original text on the left.
  5. If the string is malformed, an error reports that a % must be followed by two valid hex digits.
  6. Use the copy button on either side to grab the value you need.
  7. Tap "Play with friends" to get an invite link โ€” the plain text, encoded result, and mode all stay in sync live with whoever opens it.

Frequently asked questions

What's the difference between component and whole (encodeURI)?
encodeURIComponent encodes everything, including characters used in URL structure like &, =, and /, so it safely wraps a single query-parameter value. encodeURI leaves URL-structure characters like https:// and / untouched and only encodes the rest, so it is meant for handling a complete, already-formed URL.
Is URL encoding a form of encryption?
No. Percent-encoding is just a notation that turns special characters into a form a URL can carry โ€” anyone can decode it back to the original. Use actual encryption if you need to hide a value.
Why does encoding Korean text produce several %-prefixed chunks?
Because a single Korean character takes multiple bytes in UTF-8, and each of those bytes is represented as a two-digit hex value prefixed with %, like %EA%B0%80.
What happens if I enter a malformed encoded string?
If the format is broken โ€” for example a % that isn't followed by two valid hex digits โ€” an error message reports that decoding failed.
What do the sample buttons fill in?
Three examples with one tap each: a full URL (`https://nol.so/search?q=ladder+game&page=1`), search text (`what should I eat today?`), and special characters mixing spaces, # and & (`a=1&b=2 #hash`).
Why is the default result encoded all the way down to the slashes?
Because the default mode is component (encodeURIComponent), so the preloaded full URL gets everything encoded, including the slashes in https:// (%2F), the question mark (%3F), and & (%26). Switch to the whole (encodeURI) button if you want the URL structure left untouched and only the values encoded.
Can I use this with friends?
Yes. Tap "Play with friends" to get an invite link โ€” the plain text, encoded result, and current mode all stay in sync live on whoever opens it.
Is what I type sent to a server?
No, encoding and decoding both happen entirely in your browser. The one exception is while a "Play with friends" room is open โ€” the plain text and encoded result pass through the server so they can be relayed to the other screen.
Is this different from Base64 encoding?
Yes, they are different schemes. URL encoding (percent-encoding) turns characters a URL cannot carry into %XX form, while Base64 turns arbitrary binary data into text โ€” a separate purpose entirely. Use the "Base64 Encoder" tool if that is what you need.

Percent-encoding is a notation change, not encryption. An encoded string can still be reversed by anyone, so do not use it to hide sensitive information.

Similar tools