Skip to content

URL encode

EncodeExperimentalLimited support. Verify anything critical.

URL encode escapes characters outside the unreserved set so a value can travel safely in a query string or path segment. It uses encodeURIComponent: letters, digits, and -_.!~*'() stay literal; everything else becomes UTF-8 percent-encoded hex pairs. Encode parameter values only — not a complete URL with scheme and host.

Skip to the tool

This tool processes text on your device. The text is not uploaded.

  • Characters are escaped to UTF-8 hex pairs.
  • This tool escapes the full string. If you encode an entire URL (with its scheme and host), you will break the URL.

Steps

Paste one parameter value

Encode a single query value or path segment — not a complete URL with scheme and host.

Run locally

Reserved characters such as `&`, `=`, and spaces become percent-encoded UTF-8 pairs.

Paste into the query string

Copy the escaped string into your request or link builder.

How to use URL encode

Encode values, not whole URLs

Paste R&D or a=b&c, not https://example.com/?q=…. Encoding an entire URL turns : and / into percent sequences and breaks the link.

Spaces

Spaces become %20. If you are preparing application/x-www-form-urlencoded bodies that expect +, convert after encoding or use a form serializer instead.

How it works

  1. Enter what you haveType or pick your text. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the text, then copy or download.

Reimplemented locally. Not derived from IT-Tools source.

Basis
independent
Licence
MIT
Last reviewed

Frequently asked questions

Why should I encode URL parameters?

Reserved characters like '&', '=', '?', and '#' have structural meaning in URLs. If your query string data contains these characters (e.g. searching for 'R&D'), it will truncate or break the URL unless properly percent-encoded as '%26'.

Is this safe for full URLs?

No. This tool encodes the entire input string. If you paste a full URL (like 'https://example.com/'), the colon and slashes will be encoded, breaking the link. Only use this for individual parameter values.

How are spaces handled?

Spaces are converted to their percent-encoded hexadecimal format ('%20'). While some application/x-www-form-urlencoded forms accept '+' for spaces, '%20' is the universal standard for URI components.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close