URL Encoder / Decoder

Why Encode a URL?

URL encoding, also known as "percent-encoding," is a mechanism for encoding information in a Uniform Resource Identifier (URI).

URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, they must be converted into a valid format.

Encoding Examples

  • Space ( ) %20
  • Exclamation (!) %21
  • Ampersand (&) %26
  • Slash (/) %2F

Frequently Asked Questions

What is encodeURIComponent?

It is a JavaScript function used to encode a URI component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.

Is this tool safe for offline use?

Yes! You can "Save As" this HTML page and use it entirely offline. All logic is handled in your browser, no data is sent to a server.