URL Encoder/Decoder
Encode and decode URL strings, query parameters, and paths. Perfect for handling URL-safe data, API callbacks, redirect URLs, and debugging web applications.
Developer ToolsHow to Use URL Encoder/Decoder
What is URL Encoding?
URL encoding (also called percent-encoding) converts special characters in URLs to a format that can be safely transmitted over the internet. It replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.
How to Use This Tool
Encoding Text to URL Format
- Select Encode mode (default)
- Type or paste your text, URL, or query parameters
- Click Convert to encode
- Your URL-encoded string appears in the Output panel
- Click Copy Output to copy the encoded result
Decoding URL-Encoded Text
- Click Decode mode
- Paste your URL-encoded string
- Click Convert to decode
- Your decoded text appears in the Output panel
- Click Copy Output to copy the decoded result
Features
- Query Parameters: Safely encode query params with spaces and special characters
- Special Characters: Handles all special symbols, spaces, and non-ASCII characters
- Bidirectional: Switch between Encode and Decode modes instantly
- Error Handling: Clear error messages for malformed percent sequences
- Quick Actions: Convert, Swap modes, Copy output, Clear all, or try Sample data
Common Use Cases
- Query Strings: Encode search terms and parameters for URLs (
hello world→hello%20world) - Redirect URLs: Encode callback URLs passed as query parameters
- API Requests: Prepare URL-safe data for GET requests
- OAuth & Authentication: Encode redirect URIs and state parameters
- Debugging: Decode URL-encoded data from logs, cookies, or API responses
- Form Data: Handle
application/x-www-form-urlencodedcontent
What Gets Encoded?
URL encoding converts these characters:
- Spaces:
→%20 - Special characters:
!,#,$,&,',(,),*,+,,,/,:,;,=,?,@,[,] - Non-ASCII characters:
你好→%E4%BD%A0%E5%A5%BD
Safe characters (not encoded): A-Z, a-z, 0-9, -, _, ., ~
Tips
- Always encode query parameter values before adding to URLs
- Use Swap button to quickly reverse encode → decode or vice versa
- Spaces can be encoded as
%20or+depending on context (this tool uses%20) - URL encoding is NOT encryption—anyone can decode it instantly
Frequently Asked Questions
Related Development Tools
JSON Formatter & Validator
FeaturedFormat, validate, and pretty-print JSON with our developer-friendly editor.
Use Tool →QR Code Generator
FeaturedCreate custom QR codes for URLs, text, and contact info
Use Tool →CSS Beautifier
Format messy CSS into clean, readable styles with consistent indentation and spacing. Perfect for cleaning up minified or poorly formatted stylesheets.
Use Tool →CSV Sorter
Sort CSV by columns - Order CSV rows by one or more columns in ascending or descending order with multi-level sorting support
Use Tool →TSV to CSV Converter
Convert TSV to CSV - Transform tab-separated values to comma-separated values with automatic quoting
Use Tool →CSV to TSV Converter
Convert CSV to TSV - Transform comma-separated values to tab-separated values with automatic quote removal
Use Tool →CSV Column Renamer
Rename CSV columns - Change CSV column headers and standardize naming conventions with camelCase, snake_case, or Title Case
Use Tool →HTTP Status Code Checker
Look up HTTP status codes and their meanings instantly. Understand error codes and how to fix them.
Use Tool →Share Your Feedback
Help us improve this tool by sharing your experience