Skip to content

URL Encoder

Encode a text value such as a search query or parameter value using standard URI component encoding.

  • Free
  • No sign-up
  • Runs in your browser

Encode text for safe use as one URL component, such as a query parameter. This works on a component, not a complete URL.

URL encoding is not encryption. Conversion is local to this browser.

All processing happens in your browser — files never leave your device. Your input stays in this browser and is not uploaded to Smart Online Tools.

How it works

  1. Enter the text to encode.
  2. Select URL Encoder.
  3. Copy the percent-encoded result into the appropriate URL component.

Good to know: This encodes one component, not a whole URL. Do not encode an entire URL as a single query value unless that is specifically what your application expects.

Encode URL components

Use component encoding for a query value, path segment, or other piece of text that will be inserted into a URL. Reserved characters such as spaces, ampersands, and question marks are percent-encoded so they are not mistaken for URL structure.

Do not encode a complete URL as one component when you need its scheme, host, path, and query string to remain separate. Build the URL from its parts in your application instead.

Why URLs need encoding

URLs may contain only a limited set of characters. Spaces, accented letters and symbols such as &, ? and # must be percent-encoded, for example a space becomes %20, so they are not confused with the parts of the URL they would otherwise signal.

Encode individual query values rather than a whole URL, otherwise the :// and / characters that structure the address would be encoded too.