URL Encoder & Decoder
Free online URL encoder and decoder. Percent-encode query parameters or encode complete URLs while preserving their structure. Runs entirely in your browser.
How to use
- Paste your text into the input box and pick a mode: Component for parameter values, URI for complete URLs.
- Click "Encode →" to percent-encode, or paste encoded text and click "← Decode" to restore it.
- Copy the result with one click, or use "Swap" to round-trip the conversion.
What is URL Encoder & Decoder?
URL encoding (percent-encoding) replaces unsafe characters — spaces, non-ASCII letters like Chinese, and reserved symbols such as & and = — with a percent sign followed by two hexadecimal digits, so they can travel safely inside a URL.
Component mode (encodeURIComponent) escapes every reserved character and is meant for query parameter values. URI mode (encodeURI) keeps URL structure characters such as :// and ? intact and is meant for complete URLs. Choosing the right mode is the most common source of encoding bugs.
Frequently asked questions
Which mode should I use?
Use Component mode for query parameter values — it escapes & = ? which would otherwise break the parameter structure. Use URI mode only when encoding a complete URL that should keep its separators.
What does %20 mean?
It is the encoded form of a space. Spaces are not allowed in URLs, so they must be percent-encoded as %20.
Is the plus sign (+) the same as %20?
Only in form-encoded query strings (application/x-www-form-urlencoded), where + historically means a space. In URL paths, + is a literal character and %20 is the space.
Related tools
Base64 Encoder & Decoder
Free online Base64 encoder and decoder with full UTF-8 support. Convert text to Base64 or decode Base64 back to plain text instantly. Everything runs in your browser — no data is uploaded.
Word Counter
Count words, characters, sentences and paragraphs in real time as you type. CJK-aware word counting and a reading-time estimate included.
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case and kebab-case in one click.
Regex Tester
Test JavaScript regular expressions live. See every match highlighted with capture groups, match indexes and instant syntax errors.