PTPureToolkit
EncodingLocal-only

URL Encoder and Decoder

Encode and decode URLs or URL components locally. Useful for query strings, redirect URLs, and debugging links.

This tool runs locally in your browser. Your input is not uploaded.

No uploadsNo server logsNo runtime APIsBrowser-only transforms

URL result

Run the tool to generate local output.
Options

Examples

Full URL

A complete URL with spaces in a query value.

https://example.com/search?q=local tools&lang=zh-CN

Query component

A component value that needs separator characters escaped.

local tools & privacy=first

How it works

  1. Component mode uses encodeURIComponent or decodeURIComponent.
  2. Full URL mode uses encodeURI or decodeURI to preserve URL separators.
  3. Malformed escape sequences are caught and shown as clear errors.

Limitations

  • The tool does not fetch URLs or verify that a URL exists.
  • It does not rewrite tracking parameters or normalize URL structure.

FAQ

When should I use component mode?

Use component mode for query parameter names or values where characters like ampersands must be escaped.

Does this tool visit the URL?

No. Encoding and decoding are local string transformations only.

Related tools