URL Encoder & Decoder — Percent-Encode Anything
Encode reserved characters for safe URLs, or decode a percent-encoded string back to readable text. Component and full-URL modes.
5 of 5 free uses left
Component mode escapes every reserved character (=, &, /, ?, #). Use for query values, path segments, form data.
Click the button below to process.
URL Encoder & Decoder — Percent-Encode Anything
URLs can only contain a limited set of characters safely. Anything outside that set — spaces, accented letters, emojis, slashes inside a value, ampersands, hash signs — has to be **percent-encoded** so it survives the trip through browsers, proxies, CDNs and server routers. Our URL Encoder / Decoder handles both directions instantly, entirely in your browser.
Two modes cover every real-world case. **Component mode** (encodeURIComponent / decodeURIComponent) escapes every reserved character — perfect for query string values, single path segments, form fields and anywhere the value must not be confused with URL structure. **Full URL mode** (encodeURI / decodeURI) preserves URL-structure characters like `/`, `:`, `?`, `#` and `&` so a full URL stays navigable while still escaping unsafe characters inside it.
The tool runs locally — your URL never leaves your browser, which matters when you're encoding tokens, internal endpoints, signed URLs, OAuth state, or anything containing PII. A one-click **Swap** button takes the output of one operation and feeds it back in as the input for the opposite operation, perfect for quickly inspecting what an encoded value really contains.
Decoding is strict — if the input contains an invalid percent sequence (a stray `%` not followed by two hex digits, or an incomplete UTF-8 byte), you'll get a clear error with the exact reason. That's usually enough to spot a double-encoded value, a truncated query string, or a wrong-encoding payload coming from a legacy system.
How It Works
Pick a Direction
Choose Encode to make text URL-safe, or Decode to read a percent-encoded value.
Pick a Scope
Component mode escapes everything. Full URL mode preserves URL-structure characters.
Copy or Swap
Copy the result to your clipboard, or swap it back as input for the reverse operation.
Why Use Our Tool?
Component & Full URL Modes
Match encodeURIComponent / encodeURI semantics exactly — the right tool for every URL context.
Encode & Decode in One UI
Switch between encoding and decoding with a single tab — no need for two separate tools.
Unicode-Safe
Handles accented letters, CJK characters, emojis and any other UTF-8 input correctly.
Strict Decode Errors
Invalid percent sequences are surfaced with a clear error instead of silently breaking.
Swap Output → Input
One-click round-trip to verify what an encoded value actually decodes to, and vice versa.
100% Local Processing
Encoding and decoding happen in your browser. Nothing is uploaded or logged.