Converts special characters to percent-encoded format.
Input
Output
About URL Encoder & Decoder
A free online URL encoder and decoder that converts special characters to percent-encoded format and back. Perfect for encoding query parameters, form data, and URLs — running entirely in your browser with no server communication.
Key Features
Encode & Decode — Convert special characters to %XX format and back
Component Mode — Choose between full URL and component encoding
Double Encoding — Handle already-encoded strings without double-encoding
Query String Support — Properly encode key=value pairs
Copy to Clipboard — One-click copy of encoded or decoded output
100% Client-Side — Your data never leaves your browser
How to Use
Paste your URL, query string, or encoded text into the input textarea.
Click Encode to percent-encode special characters, or Decode to reverse the encoding.
The converted output appears instantly.
Copy the result to your clipboard with one click.
Use Cases
API Development:Encode query parameters and URL segments for REST API requests.
Form Submissions:Encode form field values for POST requests and URL-encoded form data.
Web Scraping:Decode encoded URLs found in web pages to extract the original links.
Link Sharing:Encode URLs with special characters to ensure they work correctly when shared.
Tips
Tip: Use "component encoding" when encoding a single parameter value. Use "full URL encoding" when encoding an entire URL path.
Tip: Some characters like letters, digits, hyphens, underscores, periods, and tildes do not need encoding — they are URL-safe by default.
Alternatives
Browser DevTools — encodeURIComponent() in the console
Command Line — python3 -c "import urllib.parse; print(urllib.parse.quote('text'))"
Postman — Built-in URL encoding in request builder
FAQ
URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a %XX format where XX is the hexadecimal value of the character. For example, a space becomes %20 and @ becomes %40.
URLs can only contain a specific set of ASCII characters. Special characters like spaces, Chinese characters, emojis, and symbols must be encoded to prevent them from being interpreted as URL structure (like ? for query strings or & for separating parameters).
encodeURI encodes a complete URL, preserving characters like /, ?, and & that have URL structure meaning. encodeURIComponent encodes individual components like query parameter values, encoding everything except letters, digits, and - _ . ~.
Yes, indirectly. Properly encoded URLs are more reliable and less likely to cause crawling issues. Using readable, encoded slugs in URLs (like %20 instead of +) can also improve click-through rates from search results.
Yes. Any valid percent-encoded string can be decoded back to its original form. This tool handles both single-encoded and double-encoded strings. If a string was encoded twice, you may need to decode it twice.