Developer tool

URL Encoder & Decoder

Percent-encode text for URLs or decode percent-encoded values.

Use the tool

Privacy-first: this tool runs in your browser. Your input is not sent to ToolsDiary unless the page explicitly says otherwise.

What this tool does

Encode characters that need safe representation inside a URL component, or decode percent-encoded text back to a readable form. The tool offers component encoding rather than changing a whole URL blindly.

A full URL contains structural characters such as :, /, ?, & and =. Encoding an entire URL as one component can break that structure. Use this tool for individual parameter values, path fragments or strings that must be safely embedded inside another URL.

Useful for

  • Encode query-parameter values before constructing a request.
  • Decode copied URLs for debugging.
  • Inspect redirect parameters and nested URLs.

How to use it

  1. Choose Encode or Decode.
  2. Paste the component or encoded value.
  3. Run the conversion.
  4. Check the result in the context of the final URL before using it.

Practical tips

  • Use component encoding for parameter values rather than an entire complete URL.
  • Do not decode untrusted input and then execute it as code.
  • Plus signs and spaces can behave differently in form encoding; this tool uses standard JavaScript URI component rules.
  • The input stays local to your browser.

Frequently asked questions

What does %20 mean?

It is the percent-encoded representation of a space in a URL component.

Should slashes be encoded?

If a slash is part of URL structure, usually not. If it belongs inside a parameter value, component encoding may encode it.

Can this fix a malformed URL automatically?

No. It converts encoding; it does not infer the intended structure of a broken URL.