URL Encoder & Decoder
Percent-encode or decode URLs and query parameters.
About the URL Encoder & Decoder
URL encoding (also called percent-encoding) replaces characters that are unsafe in a web address — spaces, ampersands, question marks, accents — with a percent sign followed by their hexadecimal code. This tool encodes text so it can be safely placed in a URL or query string, and decodes encoded URLs back into readable text. Toggle component mode to correctly encode individual query parameter values.
How to use it
- Paste the text or URL you want to convert.
- Choose component encoding for a single query value, or full-URL encoding to preserve the structure.
- Click Encode or Decode and copy the result.
Frequently asked questions
What is the difference between encode and encode component?
encodeURIComponent escapes everything that is not a literal — ideal for a single query value. encodeURI keeps URL structure characters like : / ? & intact.
Why do spaces become %20?
Spaces are not allowed in URLs, so they are replaced with their percent-encoded value %20 (or sometimes a plus sign in form data).
Is anything sent to a server?
No. Encoding and decoding run entirely in your browser.
Related tools
JSON Formatter & Validator
Beautify, minify and validate JSON in your browser.
Developer ToolsBase64 Encoder & Decoder
Encode text to Base64 or decode it back instantly.
Developer ToolsUUID Generator
Generate random version 4 UUIDs in bulk.
Developer ToolsHash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
Developer Tools