URL Encoder / Decoder
This URL encoder and decoder percent-encodes text for safe use in URLs, query strings and form bodies — and decodes encoded strings back to plain text. Switch between encodeURIComponent, encodeURI and application/x-www-form-urlencoded behaviour, paste your input, and copy the result in one click. Zero-Knowledge — every operation runs in your browser's volatile memory. Nothing is transmitted.
encodeURIComponent — encodes reserved characters (& = ? / : #). Use for query-string values.
🔒 Zero-Knowledge — all encoding runs in your browser. Nothing is transmitted.
Why Use This URL Encoder?
Percent-encoding (RFC 3986) is how arbitrary text is made safe to embed in a URL. Reserved characters — & = ? / : # and the space — carry structural meaning, so any value containing them must be escaped before it goes into a query string, path segment or form body. This tool exposes the three encoding behaviours developers actually need: encodeURIComponent for individual query-string values, encodeURI for whole URLs where the structure must be preserved, and application/x-www-form-urlencoded (spaces as +) for HTML form submissions. Everything runs via the browser's native encodeURIComponent / decodeURIComponent functions — no server round-trip, no request log, no third-party dependency with supply-chain risk. Paste sensitive query parameters or signed tokens without them ever leaving the tab.
Three encoding modes: Component (encodeURIComponent) escapes every reserved character for safe use as a query value; Full URL (encodeURI) preserves the structural characters of a complete URL; Form (+) follows the application/x-www-form-urlencoded rule of encoding spaces as +.
Bidirectional and live: encode or decode with a single tab switch, with output updating instantly as you type. A Swap button flips input and output and toggles the mode so you can round-trip a value in one click.
Line-by-line batch mode: paste a list of URLs or values and encode each line independently, keeping line breaks intact instead of escaping them — ideal for processing logs, sitemaps or parameter lists.
Robust decoding: malformed input — a lone % or a truncated %2 — is caught and reported clearly instead of throwing a silent URIError, so you always know whether a string is valid percent-encoding.
Zero-transmission guarantee: no API route, no analytics on your payloads, no server logs. encodeURIComponent and decodeURIComponent run in the browser's volatile memory — close the tab and every trace is gone.
How to Use the URL Tool
- 1
Choose the Encode or Decode tab, then paste your text into the input panel.
- 2
Pick a mode: Component for query values, Full URL for a whole address, or Form (+) for form bodies.
- 3
Read the result instantly in the output panel — it updates live as you type and shows a character count.
- 4
Click Copy to send the output to your clipboard, Download to save it as a file, or Swap to round-trip the value.
Frequently Asked Questions
Also try our Base64 Encoder / Decoder to encode binary data and text for headers, tokens and data URIs.
Related Tools
Password Generator
Generate strong, random passwords instantly.
Hash Generator
Hash text with MD5, SHA-256, SHA-512 and more.
Password Strength Checker
Test how strong your password really is.
PIN Generator
Generate secure numeric PIN codes.
Random Number Generator
Generate random numbers in any range.
UUID Generator
Generate v4 UUIDs for IDs and tokens.