URL Encoder/Decoder Tool

URL Encoder/Decoder Tool

Encode special characters in URLs or decode encoded URLs back to original text

Operation Type

Enter Text or URL

Characters: 0 Bytes: 0

Quick Examples:

0
Input Size
0
Output Size

Processing…

Success! Result copied to clipboard.

Processing Results

URL Encoding/Decoding
Operation: Encode
Input Size: 0 chars
Output Size: 0 chars
Size Change: 0%
Formula: URL Encoding replaces unsafe characters with % followed by two hexadecimal digits

How URL Encoding Works

URL encoding converts characters into a format that can be transmitted over the Internet:

  • Space becomes %20 or +
  • Ampersand (&) becomes %26
  • Question mark (?) becomes %3F
  • Equals (=) becomes %3D
  • Plus (+) becomes %2B
// Original URL:
https://example.com/search?q=hello world&page=1

// Encoded URL:
https://example.com/search?q=hello%20world&page=1
Note: encodeURI() encodes complete URLs, while encodeURIComponent() encodes individual URI components (like query parameters).

Enter text to encode or decode and see the results here

Processing History

Your encoding/decoding history will appear here

About URL Encoding

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

  • Safe Characters: Alphanumeric characters and -_.~ are not encoded
  • Reserved Characters: ! * ‘ ( ) ; : @ & = + $ , / ? % # [ ] are encoded
  • Unsafe Characters: Space, <, >, “, {, }, |, \, ^, ~, [, ], ` are always encoded
  • UTF-8 Encoding: Non-ASCII characters are encoded as multiple bytes
  • Percent Sign: Encoded characters start with % followed by two hex digits

URL encoding ensures that URLs are properly formatted and can be transmitted over the Internet without issues.

Important: Always use encodeURIComponent() for query parameters and encodeURI() for complete URLs. Decode using the corresponding decode functions.
Scroll to Top