AAsa Toolz
Developer Tools

URL Encoder / Decoder

Encode values for safe use in a URL, or decode a percent-encoded string back to readable text. Handles full URLs and individual query-string parts separately so you never over-escape.

Result

How it works

The tool uses the standard encodeURIComponent / decodeURIComponent functions for single values, and encodeURI / decodeURI for full URLs. A toggle lets you pick the right mode for your input.

Common ways people use it

  • Building a search URL that contains spaces or symbols
  • Reading a logged URL that is full of %20 and %3F
  • Preparing a redirect parameter that must be safe inside another URL
  • Debugging why a query-string value is breaking on the server

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?+
encodeURI leaves characters that have meaning in a URL (like /, ?, #, &) unescaped, so it is meant for whole URLs. encodeURIComponent escapes them, which is what you want for a single query-string value.
Why do some characters turn into long codes like %E2%9C%93?+
Non-ASCII characters are first encoded as UTF-8 bytes, and each byte becomes %XX. A single check mark (✓) becomes three bytes and therefore three %-codes.
Does encoding a URL twice cause problems?+
Yes. Double-encoding turns %20 into %2520 and breaks the link. Decode once to confirm the state before encoding again.

More in Developer Tools