URL Encoder/Decoder
Encode and decode URLs, query parameters, and URL components with multiple encoding modes.
Mode Explanation:
encodeURIComponent() - Encodes all special characters including: ; / ? : @ & = + $ , #
Best for: Individual query parameter values, path segments
Enter Text to Process
Enter a URL, query string, or text to encode or decode using the selected mode.
Understanding URL Encoding
Encoding Methods
- encodeURIComponent(): Encodes all special characters including reserved ones like ?, &, =, and /. Best for individual query parameter values.
- encodeURI(): Preserves URL structure characters (/, ?, #, etc.) while encoding spaces and other special characters. Best for complete URLs.
- Query String Parser: Parses key-value pairs in query strings and properly encodes each component separately.
- Percent Encoding: Uses %XX format where XX is the hexadecimal ASCII code of the character.
- UTF-8 Support: Properly handles international characters and emoji in URLs.
Common Use Cases
- Encoding query parameters before adding them to URLs
- Building dynamic URLs with user input or form data
- Decoding URLs received from external sources or APIs
- Debugging URL-related issues in web applications
- Creating SEO-friendly URLs with proper encoding
More Calculators
Explore more calculators and tools to help with your everyday tasks.
Body Fat Percentage
Estimate your body fat percentage using various measurement methods and formulas.
Budget
Visualize your income and expenses with an interactive sankey diagram showing where every dollar goes.
Scientific Calculator
Advanced calculator with scientific functions, graphing capabilities, and memory operations.
Rent vs Buy
Compare the true cost of renting versus buying a home over time.
Early Loan Payoff
See how extra payments can save you thousands in interest and years off your loan.
Regex Tester
Test and debug regular expressions with real-time matching and explanations.