URL Encode Decode – Percent-encode and decode text
Paste a URL fragment or query value, then Encode to percent-encode reserved characters, or Decode to restore them. Broken percent sequences surface as Invalid URL encoding instead of crashing.
Updated 2026-08-03 · developer
About this tool
URL encoding turns spaces and symbols into percent-hex form so query strings stay safe. This tool exposes Encode and Decode buttons over one Input textarea, using the browser encodeURIComponent and decodeURIComponent APIs for the result panel.
How to use
- Open the tool: Open URL Encode Decode in any modern browser.
- Paste input: Put plain text or an encoded string into Input.
- Encode or Decode: Click Encode for percent-encoding or Decode to reverse it.
- Copy the result: Copy the result panel into your URL, code, or docs.
Common use cases
- Percent-encode a search phrase before dropping it into a query string.
- Decode a percent-heavy link parameter back into readable text.
- Fix a broken share URL by decoding, editing, then encoding again.
Tips
- Encode uses encodeURIComponent, so characters like ampersand and equals become percent sequences.
- If Decode fails, fix malformed percent sequences—the tool shows Invalid URL encoding.
FAQ
Which encode API does this use?
encodeURIComponent for Encode and decodeURIComponent for Decode.
What happens on a bad decode?
The result shows Invalid URL encoding.
Will Encode change a full URL including the scheme?
Yes—it encodes the whole Input string, including slashes if present.
Is data sent to a server?
No. Encoding and decoding run in your browser.