All Developer

URL Encoder and Decoder

URL-encode or decode percent-encoded strings.

url-encoder.local
Result
The result will appear here.

How to use it

  1. Choose Encode or Decode.
  2. Type or paste your text or encoded string.
  3. Copy the result.

About this tool

This tool percent-encodes text so it is safe inside a URL, or decodes a percent-encoded string back to readable text. It uses the browser encodeURIComponent and decodeURIComponent, which escape characters like spaces, slashes, and question marks. Decoding rejects malformed input, such as a lone percent sign, with a clear error.

Examples

Inputblue shoes (encode)
Outputblue%20shoes
Inputa%2Fb (decode)
Outputa/b

Common uses

  • Encode a query string value
  • Decode a URL to read it
  • Escape text for a link parameter
  • Inspect a percent-encoded string

FAQ

Is my input uploaded?
No. Encoding and decoding run in your browser. Nothing is sent anywhere.
What does it encode?
It uses encodeURIComponent, which escapes spaces and reserved characters so a value is safe inside a URL.
What if decoding fails?
Malformed input, like a stray percent sign, shows a clear error instead of returning broken text.

Related tools

Embed this tool

Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.

<iframe src="https://tooldok.com/embed/url-encoder/" title="URL Encoder and Decoder by Tooldok" width="100%" height="560" style="border:1px solid #16130d;border-radius:16px;max-width:720px" loading="lazy"></iframe> <p style="font:13px sans-serif"><a href="https://tooldok.com/tools/url-encoder/" target="_blank" rel="noopener">URL Encoder and Decoder</a> by <a href="https://tooldok.com/" target="_blank" rel="noopener">Tooldok</a></p>