Diysb Tools

String URL encoder

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

Text Tools

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.

Input String
Url-escaped String
Tool options
Encoding Options
If selected, then all characters in the input string will be converted to URL-encoding (not just special).
String URL encoder Examples

Encode Special Characters

Encode special characters in a URL.

hello world&foo=bar
hello world&foo=bar
hello%20world&foo%3Dbar
hello%20world&foo%3Dbar
Encoding Options
If selected, then all characters in the input string will be converted to URL-encoding (not just special).

Encode All Characters

Encode ALL characters, including non-special ones.

hello
hello
%68%65%6c%6c%6f
%68%65%6c%6c%6f
Encoding Options
If selected, then all characters in the input string will be converted to URL-encoding (not just special).

Encode URL

Encode a full URL string.

https://example.com/path?query=value
https://example.com/path?query=value
https%3A%2F%2Fexample.com%2Fpath%3Fquery%3Dvalue
https%3A%2F%2Fexample.com%2Fpath%3Fquery%3Dvalue
Encoding Options
If selected, then all characters in the input string will be converted to URL-encoding (not just special).