TSToolSeta
Developer Tools · Ready

URL Encoder & Decoder

Encode or decode UTF-8 URI components in your browser.

Workbench online
Loading tool controls…

URL Encoder and Decoder guide

Encode text for use inside a URL component or decode percent-encoded text back into readable Unicode.

What this tool does

The URL Encoder applies the browser’s standard URI-component encoding rules. Characters that have structural meaning in a URL, including spaces, ampersands, slashes, question marks, and non-ASCII characters, are represented using percent-encoded UTF-8 bytes where required. Decode mode reverses a valid encoded component.

This tool is designed for a component such as one query value, path segment, filter name, or redirect parameter. It deliberately uses component encoding rather than encoding an entire URL. Encoding a complete address would also escape separators such as : and /, making the result inconvenient as a normal clickable address.

For example, the value blue shoes & boots becomes blue%20shoes%20%26%20boots. When that value is inserted into a query parameter, the ampersand remains data instead of being mistaken for the beginning of another parameter.

How to use it

  1. Select Encode or Decode.
  2. Paste a URL component into the input field.
  3. Select the conversion button.
  4. Check the output, then copy it to the clipboard.
  5. Test the completed URL in the application that will consume it.

Decode mode rejects incomplete percent sequences and byte combinations that are not valid for the browser decoder. If decoding fails, check for a lone percent sign, truncated escape, or a value that was never encoded in the first place.

Benefits

  • Uses the browser’s standard UTF-8 URI-component behavior
  • Handles spaces, symbols, and international characters
  • Supports both encoding and decoding
  • Shows invalid encoded input instead of returning a misleading result
  • Keeps input and output entirely on the device

Component encoding versus form encoding

URI component encoding represents spaces as %20. Traditional HTML form query encoding often represents spaces with a plus sign. A plus sign is not automatically converted to a space by decodeURIComponent, because that substitution belongs to form parsing rather than core URI decoding. If you are debugging submitted form data, confirm which convention the sending system uses.

Encoding also does not validate whether a completed URL points to a safe or existing destination. Treat decoded redirect links and unfamiliar parameters carefully, especially when they came from untrusted messages.

Use the Query String Parser when you need to decode every key and preserve repeated values from a complete query. Use the URL Parser when you need the address split into protocol, host, path, query, and fragment components.

FAQ

Usually no. Encode one dynamic value or path segment, then place that result into the full URL structure.

Percent-20 is standard URI component encoding. Plus-for-space is a separate convention commonly used by HTML form query serialization.

Yes. JavaScript encodes the UTF-8 representation of supported Unicode text into percent sequences.

The input may contain an incomplete percent escape or invalid encoded byte sequence. Check every percent sign and try the original source value.

No. The encode and decode functions run locally in the browser and ToolSeta does not receive the entered value.

Keep working

Related tools

View all Developer Tools