Runs locally
$ devdesk url--local
Encode & convert

URL encoder / decoder for components and full URLs

Encode URL components or full URLs, including Unicode, spaces, plus signs and percent signs. Diagnose double encoding and malformed URI sequences locally.

Loading local tool…

How to use

Component mode uses encodeURIComponent; full URL mode preserves separators such as /, ? and &. Decoding does not treat a plus sign as a space.

Your input stays yours

Step by step

  1. Choose URL component for one parameter value, or Full URL for an existing complete address.
  2. Paste the text and choose Encode or Decode.
  3. Check separators and percent escapes to avoid encoding the same value twice.

Query value example: plus signs and spaces

a+b &中

Component mode returns a%2Bb%20%26%E4%B8%AD. A literal + is not automatically decoded as a space.

Frequently asked questions

Which mode should I use?

Component mode escapes separators such as &, = and ? and is suitable for one value. Full URL mode preserves URL structure, but cannot decide whether a particular & is a separator or part of a value.

Why do I see %2520?

A common cause is encoding %20 again, turning % into %25. Identify the encoding stage first instead of repeatedly decoding without checking.

Why do malformed percent sequences fail?

Percent escapes need valid hexadecimal byte sequences and a valid decoded encoding. Check for truncation, repeated transformations or a different source character encoding.