devkult_
tools24converters26
home/tools/encoding/URL Encode / Decode

URL Encode / Decode

Encode or decode URL components for safe transmission.

Output
https%3A%2F%2Fdevkult.com%2Fsearch%3Fq%3Dhello%20world%20%26%20test%3Dtrue

Frequently Asked Questions

What is URL Encoding?

URL Encoding (also known as percent-encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI). Characters that are not allowed in a URL (like spaces, ampersands, or slashes) must be converted into a valid format, usually a percent sign % followed by a two-digit hexadecimal representation.

When should I encode a URL?

You should encode a string when you are placing it into a URL query parameter or path. For example, if you are passing an email address or a piece of text that contains spaces or special characters to an API via a GET request, it must be URL encoded so the server parses it correctly.