ToolSink

URL Encoder / Decoder

Encode or decode a URL or query-string with full support for reserved characters, UTF-8 and both encodeURI and encodeURIComponent modes.

What is the URL Encoder / Decoder?

The URL Encoder / Decoder converts text to and from percent-encoded form: spaces become %20, ampersands become %26, and non-ASCII characters are escaped as UTF-8 sequences so they survive inside URLs and query strings.

Two modes match the two JavaScript functions: "Component" (encodeURIComponent) escapes everything and is right for query values; "Full URL" (encodeURI) preserves reserved characters like /, ? and & so a whole URL keeps working.

How to use the URL Encoder / Decoder

  1. 1Paste the text or URL you want to encode or decode.
  2. 2Pick a mode: Component for individual values, Full URL for complete URLs.
  3. 3Click "Encode" or "Decode" and copy the result.

Key features

  • Component and full-URL modes
  • UTF-8 aware (correctly encodes é, ñ, 中文, emojis)
  • Reports invalid percent sequences on decode
  • Handles multi-line input

Important notes

  • Percent-encoding is a formatting step, not encryption — it makes text safe to put in a URL, but anyone can decode it.
  • Encoding a full URL and encoding a single query-string value are different: use component encoding for individual values so characters like & and = are escaped correctly.
  • Everything runs in your browser, so the text you encode or decode is never uploaded.

Frequently asked questions

Which mode should I use for query strings?

Component — reserved characters inside a value must be escaped so they do not break the query parser.

Tap any tool to jump straight in — no signup, works on mobile.

View all →