tools.

URL Encoder/Decoder

Free URL encoder and decoder. Convert special characters to URL-safe percent-encoded format (%XX) and decode encoded URLs back to readable text. Essential for web development and API work.

What Is URL Encoding?

URL encoding (also called percent-encoding) is a mechanism for representing special characters in URLs. Characters that are not safe in a URL (spaces, accents, symbols) are replaced by a percent sign (%) followed by their hexadecimal code.

When Should You Use URL Encoding?

You should encode query string parameter values, filenames with special characters, and any text you include in a URL. For example, a space becomes %20 and an ampersand becomes %26.

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes all special characters, making it ideal for parameter values. encodeURI preserves structural URL characters (such as :, /, ? and &), making it ideal for encoding a full URL.

Should a space be encoded as %20 or +?

In standard URL encoding, a space is encoded as %20. The + sign as a space is a convention specific to HTML form submissions (application/x-www-form-urlencoded).

Related Tools