πŸ”—

URL Encoder / Decoder

Percent-encode or decode URLs and query strings instantly. Switch between full URL mode (encodeURI) and component mode (encodeURIComponent) for query params.

Mode
Quick Examples β€” click to load
Query with spaces
https://example.com/search?q=hello world&lang=en
Query string params
name=John O'Brien&city=New York
Path with spaces
https://example.com/path with spaces/file (1).pdf
Email & message
email=user@example.com&message=Hello! How are you?
Advertisement
How to use
  1. Pick a mode β€” Component (encodeURIComponent) for query values, Full URL (encodeURI) for whole URLs.
  2. Paste your URL/text β€” auto-encodes after a short pause, or click Decode to reverse.
  3. Use Swap to move output to input, then Copy Output.
FAQ

encodeURI leaves structural URL characters intact. encodeURIComponent encodes everything including /?&#. Use Component for query values.

%20 is the percent-encoded form of a space (ASCII 0x20).

No β€” only encode individual components (query values, path segments). Encoding the whole URL breaks the :// and query separators.