URL Encoder / Decoder
Encode, decode, and parse URLs online. Supports both component and full URL encoding.
encodeURIComponent / decodeURIComponent - Encodes all special characters including :, /, ?, #, etc.
How to Use the URL Encoder/Decoder
1. Choose the encoding mode: "URL Component" encodes all special characters (best for query parameters), while "Full URL" preserves URL structure characters.
2. Enter your text or URL in the input textarea.
3. Click Encode or Decode to transform the input. The result appears below.
4. Parse URL to break a complete URL into its individual components (protocol, host, path, query parameters, etc.).
5. Use the Copy button to copy the result, or Use as Input to chain multiple encode/decode operations.
Frequently Asked Questions
What is the difference between URL Component and Full URL encoding?
URL Component encoding (encodeURIComponent) encodes all special characters including colons, slashes, question marks, and ampersands. Full URL encoding (encodeURI) preserves these structural characters, only encoding characters that are not valid in any part of a URL.
When should I use URL encoding?
Use URL encoding when you need to include special characters in URLs, particularly in query string parameters. For example, if a search query contains spaces, ampersands, or other special characters, they must be percent-encoded to be transmitted correctly.
What is percent encoding?
Percent encoding (also called URL encoding) replaces unsafe characters with a percent sign followed by two hexadecimal digits representing the character's byte value. For example, a space becomes %20, and an ampersand becomes %26.
Can I parse a URL into its components?
Yes. Enter a complete URL and click "Parse URL" to see it broken down into protocol, host, port, path, query string, hash fragment, and individual query parameters in a structured table.