1. All tools
  2. Text Tools
  3. String URL encoder

String URL encoder

Load your string and it will automatically get URL-escaped.

String URL encoder

This tool URL-encodes a string. Special URL characters get converted to percent-sign encoding. This encoding is called percent-encoding because each character's numeric value gets converted to a percent sign followed by a two-digit hexadecimal value. The hex values are determined based on the character's codepoint value. For example, a space gets escaped to %20, a colon to %3a, a slash to %2f. Characters that are not special stay unchanged. In case you also need to convert non-special characters to percent-encoding, then we've also added an extra option that lets you do that. Select the encode-non-special-chars option to enable this behavior.

String URL encoder Examples

Click to try!

Encode an actual URL

This example URL-encodes a string that also happens to be a valid web link. Special characters in this example are a colon, slash, question mark and equals sign.

Encoding Options

Encode non-special characters

If selected, then all characters in the input string will be converted to URL-encoding (not just special).

Encode All Characters

In this example, we've enabled the option that encodes absolutely all characters in a string to URL-encoding. This option makes non-special characters, such as letters get encoded to their hex codes prefixed by a percent sign.

Encoding Options

Encode non-special characters

If selected, then all characters in the input string will be converted to URL-encoding (not just special).

Related tools