URL Encode & Decode
Free URL encoder and decoder. Percent-encode text, decode %XX sequences and edit query parameters in a URL parser that rebuilds the link. Private, in-browser.
- No upload — 100% private
- Instant, on your device
- Free, no sign-up
- Works offline once loaded
How it works
How to use URL Encode & Decode
Choose Encode component, Encode full URL or Decode.
Type or paste your text — the result updates as you type.
Open the URL parser to see protocol, host, path, fragment and every query parameter.
Edit, add or remove parameters and copy the rebuilt URL.
Why use it
Why use our URL Encode & Decode tool
Component vs full URL
encodeURIComponent for query values and path segments; encodeURI when you need to keep : / ? & = intact.
Form-style spaces
Optionally encode spaces as + or treat + as a space when decoding form data.
Clear error messages
Malformed % sequences are reported with the line and the offending characters.
Editable query table
Change keys and values in plain text — encoding is handled for you and the URL rebuilds live.
Runs locally
Tracking links, signed URLs and tokens never leave your browser.
FAQ
Frequently asked questions
What is URL encoding?
URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with % followed by two hex digits of their UTF-8 bytes — a space becomes %20 and é becomes %C3%A9.
When should I use encodeURIComponent instead of encodeURI?
Use encodeURIComponent for a single piece such as a query value, because it escapes & = ? and /. Use encodeURI only for a complete URL whose structure must stay intact.
Should spaces be %20 or +?
%20 is valid everywhere in a URL. + means a space only in application/x-www-form-urlencoded query strings, which is what HTML forms submit.
Why do I get a malformed URI error when decoding?
A % must be followed by two hex digits, and the bytes must form valid UTF-8. A stray % (like '100%') or a truncated sequence causes the error.
Related tools
Base64 Encode & Decode
Encode or decode Base64 text, files, images and data URIs.
JSON Formatter
Beautify, validate, minify and explore JSON as a tree.
QR Code Generator
QR codes for URLs, text, email, phone and SMS — with your logo.
Hash Generator
MD5, SHA-1, SHA-256, SHA-512 and HMAC for text or files.
UUID Generator
Generate v4 and v7 UUIDs in bulk, then validate and decode.
JWT Decoder
Decode JWT header and payload, check expiry, verify HMAC.
Regex Tester
Test JavaScript regular expressions with live highlighting.
Diff Checker
Compare two texts side by side with word-level highlights.