Skip to content

Encode text for a URL

Encode a text's special characters so it's safe to use in a URL.

Processed on your device. Nothing is sent to any server.

Encode a text's special characters (spaces, symbols, accents) so it can be safely used as part of a URL.

Applies the standard percent-encoding algorithm (encodeURIComponent), replacing each unsafe character with its %XX representation.

Use cases

  • Encoding a value before adding it to a query string.
  • Preparing text with spaces or symbols for a URL.
  • Encoding a parameter to pass to an API.

How it works

  1. 1

    Type your text

    Type or paste the text you want to encode.

  2. 2

    Encode it

    Click Encode and copy the result.

Frequently asked questions

Does it also encode the / character?
Yes, encodeURIComponent encodes all reserved characters including /, ideal for individual query string values (not a full URL).
Developer