URL Encoder & Decoder
Convert text to percent-encoded URLs and back, then break a URL into its scheme, host, path and query parameters. The tool handles Unicode, rejects malformed sequences and keeps duplicate query keys in order.
Component encodes reserved characters; Full URL keeps :/?#&= intact; Form uses application/x-www-form-urlencoded rules.
Duplicate query parameters are preserved. Editing a parameter and rebuilding keeps the order.
How it works
- Choose Encode or Decode and select component, full-URL or form rules.
- Paste the value and run the conversion. Malformed percent sequences produce an error instead of a partial decode.
- Use the URL analyser to inspect and edit query parameters, then rebuild the URL.
Supported input and limits
| Input | Plain text, URLs, Percent-encoded text |
|---|---|
| Output | Encoded text, Decoded text, Parsed URL parts |
| Size limit | Not applicable |
| Offline | Verified after the page and its script are cached |
- Full URL mode still requires a valid absolute URL when analysed.
- The analyser does not fetch the URL or resolve redirects.
- Very large documents are not supported; this is a text utility.
Privacy
This tool runs entirely in your browser. Your input is not uploaded, logged or stored by TinkerFern. Read the privacy policy.
Frequently asked questions
What is the difference between component and full URL encoding?
Component mode uses encodeURIComponent, which encodes reserved characters such as /, ?, & and =. Full URL mode uses encodeURI, which preserves the structural characters of a complete URL while encoding spaces and non-ASCII text.
When should I use form mode?
Form mode follows application/x-www-form-urlencoded rules: spaces become +. Use it for HTML form bodies and some legacy query-string APIs. Use component mode for a single query value.
Why is %E0%A4%A rejected?
A percent escape needs two hexadecimal digits. The final A is incomplete, so decoding would be ambiguous. The tool reports a malformed sequence rather than guessing a replacement character.
Are duplicate query parameters preserved?
Yes. The analyser lists every occurrence of a repeated key in order. Rebuilding the URL preserves that order, which matters for APIs that treat repeated keys as a list.
Is the URL sent anywhere?
No. Conversion and analysis happen in the page. The tool does not fetch the URL, follow redirects, store it or send it to analytics.
Related tools
Continue with a task that often follows this one.
Base64 Encoder / Decoder
Encode UTF-8 text to Base64 or decode it back safely.
JSON Formatter & Validator
Format, minify and validate JSON with precise error locations.
Text Toolkit
Change case, clean up, sort and count lines and characters.
QR Code Generator
Create downloadable PNG or SVG QR codes for URLs, text and Wi-Fi.
Read the guide
Background for this task, with the trade-offs explained.