Encode a query
Input: a b&c=d
Output: a%20b%26c%3Dd
Spaces, &, and = are percent-encoded so they are safe in a URL.
Percent-encode text for safe use in URLs, or decode percent-encoded strings back to readable text.
Ready.
Input: a b&c=d
Output: a%20b%26c%3Dd
Spaces, &, and = are percent-encoded so they are safe in a URL.
Input: https://rapidunits.com/?q=cm to inches
Output: https%3A%2F%2Frapidunits.com%2F%3Fq%3Dcm%20to%20inches
encodeURIComponent escapes every reserved character.
Input: a%20b%26c%3Dd
Output: a b&c=d
Percent-encoded text is decoded back to the original.
encodeURIComponent escapes more characters (including & ? = /), which is what you want for query values.
A lone % or an incomplete sequence like %2 is invalid; the tool flags it instead of guessing.
Yes — characters are encoded as their UTF-8 bytes, so any language works.
Updated: June 7, 2026