DevToolMage

Encoding

URL Encoder and Decoder

Percent-encode or decode a string the way query parameters need. Full URL parsing is a different job.

This tool can receive sensitive values. Processing stays in your browser. Do not paste production secrets, private keys, or live access tokens. DevToolMage does not upload or log the input.

Uses encodeURIComponent / decodeURIComponent semantics.

How it works

Uses the browser encodeURIComponent and decodeURIComponent functions. Malformed escape sequences return an error.

Input and output

Input is a string. Output is the encoded or decoded string.

Examples

Query value

hello world & more becomes hello%20world%20%26%20more.

Unicode

東京 encodes to percent-encoded UTF-8 bytes.

How to use this tool

  1. Paste the component or encoded string.
  2. Choose encode or decode.
  3. Copy the result.

Limitations

  • Does not validate that a string is a legal URL.
  • Does not rewrite schemes, hosts, or relative paths.
  • URLs can contain secrets in query strings. Treat them as sensitive.

Questions

Is this encodeURI or encodeURIComponent?

Component mode uses encodeURIComponent / decodeURIComponent. That is the usual choice for query values.

Will this parse host, path, and query?

No. This page encodes or decodes a string. It does not split a URL into parts.

Related tools