URL / URI Encoder Decoder
A free URL encoder and decoder that runs entirely in your browser. Paste a string or URL and encode it for use in query parameters, or paste an encoded string and decode it to plain text. Supports both component encoding (for query values) and full-URL encoding. No data is sent to any server.
Why Use This URL Encoder?
- Fast: Encode or decode with one click.
- Private: All processing happens in your browser.
- Two modes: Use component encoding for query strings and special characters, or full URL encoding when working with entire URLs.
- Handles Unicode: Correctly encodes and decodes non-ASCII characters (e.g. Chinese) in URLs.
Key Features
- Encode / Decode: One-click encode or decode; result appears in the output box.
- Component vs full URL: Component mode uses encodeURIComponent/decodeURIComponent (recommended for query parameters); full URL mode uses encodeURI/decodeURI.
- Copy result: Copy the output to the clipboard with one click.
- Error handling: Invalid encoded input shows a toast message instead of breaking the page.
How it Works
The tool uses the built-in JavaScript functions: encodeURIComponent and decodeURIComponent for component mode (encoding all reserved characters except -_.!~*'()), and encodeURI and decodeURI for full-URL mode (preserving ;,/?:@&=+$#). Decoding invalid sequences can throw; the tool catches that and shows feedback. For non-ASCII characters (e.g. Chinese), component encoding produces percent-encoded UTF-8 bytes.
Try the URL Encoder Decoder
Enter or paste text in the input area, choose component or full URL mode, then click Encode or Decode. Copy the result from the output box. Everything runs in your browser with no server round-trip.