URL Encoder / Decoder

Percent-encode or decode text for safe use in a URL.

Mode

Encoding and decoding happen entirely in your browser. Nothing here is ever sent to a server.

Output

Valid
https%3A%2F%2Ftruemeasurekit.com%2Fsearch%3Fq%3Dcompound%20interest%20%26%20tax

For informational and educational purposes only — not professional or technical advice, and not a substitute for consulting a qualified professional about your specific situation. TrueMeasureKit is not liable for decisions made based on these results. See our Terms of Service.

Which characters get encoded

URLs can only safely contain a limited set of ASCII characters — letters, digits, and a handful of punctuation marks. Percent-encoding replaces everything else (spaces, &, ?, non-Latin text) with a %XX escape sequence, where XX is the character's byte value in hex. This tool uses encodeURIComponent(), the right choice for encoding a single query parameter or path segment — it escapes characters like & and = that have special meaning in a full URL but would break a query string if left as-is inside a value.

Frequently asked questions

Why does a space become %20 or a plus sign?

URLs can't contain literal spaces, so they're percent-encoded as %20 in most contexts, or sometimes as + specifically within query string values — a legacy convention from HTML form encoding that predates strict URL percent-encoding.

Advertisement
Adaptive banner

We use cookies for analytics and to show ads, including personalized ads from Google. You can accept or reject these — the calculators themselves never send your inputs anywhere either way. See our Privacy Policy for details.