PocketPlay
中文

URL Encode / Decode

Encode and decode URLs and query strings online — percent-encoding, form (+) encoding and a query string parser.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Escapes everything that is not safe inside one query parameter or path segment, including / ? & = #.

Plain text

Encoded result

Parse a query string

No parameters yet.

How to use the URL encoder

  1. Pick Encode or Decode, then choose how much to escape: a single component, a whole URL, or form data where spaces become +.
  2. Type or paste on the left — the result updates on the right as you type, and Copy result puts it on your clipboard.
  3. To inspect a link, paste it into Parse a query string and read every parameter as a decoded key/value table.

FAQ

When should I use encodeURI instead of encodeURIComponent?

Use Whole URL (encodeURI) when you already have a complete address and only want unsafe characters such as spaces fixed — the separators / ? & = # are left alone. Use Component (encodeURIComponent) for one value you are about to drop into a query string, because it escapes those separators too.

Why does my decoded text show “Broken escape sequence”?

A % in a URL must be followed by exactly two hex digits. If your text contains a literal percent sign (for example 100%), encode it as %25 first, or the decoder cannot tell it apart from an escape.

Is my URL sent anywhere?

No. Encoding, decoding and query-string parsing all happen in your browser with plain JavaScript; nothing is uploaded or logged.