SmartKitio

URL Encoder

Percent-encode a value so it can be placed safely in a query string or URL path segment.

Your input stays in your browser. Nothing is uploaded.

Input
Output

About this tool

Encoding uses JavaScript's encodeURIComponent. Letters, digits, and - _ . ! ~ * ' ( ) are left as they are; every other character is converted to UTF-8 bytes and written as %XX. Spaces become %20. Because characters such as / ? & = are encoded too, encode each parameter value on its own, not a whole URL.

How to use it

  1. Paste the value to encode, such as a search term or redirect URL.
  2. Copy the encoded result and insert it after the = in your query string.
encodeURIComponent(text)

Examples

  • Query value

    "rock & roll" becomes "rock%20%26%20roll".

  • Redirect parameter

    "https://example.com/a?b=1" becomes "https%3A%2F%2Fexample.com%2Fa%3Fb%3D1", safe to use as ?next=…

  • Non-ASCII

    "café" becomes "caf%C3%A9"; é is two UTF-8 bytes.

FAQ

Why is a space %20 and not +?
encodeURIComponent always uses %20. The + form comes from HTML form encoding. Both are accepted by most servers in query strings.
Should I encode a whole URL?
No. Encoding a full URL also encodes the :// and / characters and breaks it. Encode only the individual values you insert.
Is my text uploaded?
No. Encoding happens in your browser.