URL Encoder / Decoder
Processed in your browserA URL encoder percent-encodes query values that contain spaces, &, or =. Decode to read tracking links. Choose encodeURI or encodeURIComponent depending on whether you are encoding a whole URL or one parameter.
What this tool does
A URL encoder percent-encodes query values that contain spaces, &, or =. Decode to read tracking links. Choose encodeURI or encodeURIComponent depending on whether you are encoding a whole URL or one parameter.
Features
- Full URI mode
- Component mode
- Copy result
How to URL-encode text
- Paste a URL or query string.
- Choose component mode for query values or full URI mode for paths.
- Click Encode or Decode and copy the output.
Why Toolstik
The two JavaScript methods are named in the UI so you do not encode a full URL with encodeURIComponent and break the scheme.
Example: encode a query value
- Input
- price=10&20% off
- Result
- price%3D10%2620%25%20off
Common uses
- Encode query parameter values that contain &, =, or spaces.
- Decode tracking links to read their parameters.
- Debug redirect URLs nested inside other URLs.
Supported formats
- URLs and URI components
Limits
- UTF-8 text
Limitations
- Does not validate that a URL is reachable.
Privacy
Processing is local; URLs are not fetched.
Frequently asked questions
Related guides
- How to Build UTM Links for Google Analytics 4
Learn how to build UTM links for GA4 with utm_source, utm_medium, and utm_campaign. Lowercase values, keep reports clean, and copy your campaign URL free.
- How to Create an SEO-Friendly URL Slug (Free Generator)
Create an SEO-friendly URL slug from any title in seconds. Lowercase, hyphenated, accents removed, and trimmed to 80 characters. Free and runs in your browser.
- How to Test a Regex Online (JavaScript Regex Tester Guide)
How to test regex online: enter a JavaScript pattern, toggle g, i, m, s, and u flags, read matches and capture groups, and fix greedy matching and catastrophic backtracking.
- Common JSON Errors and How to Fix Them
Fix common JSON errors fast: trailing commas, single quotes, unquoted keys, comments, BOMs, NaN, and raw line breaks, with before-and-after examples.
You may also need
UTM Link Builder
Build campaign URLs with utm_source, utm_medium, and utm_campaign for Google Analytics.
Base64 Encoder / Decoder
Encode or decode text to Base64 with optional URL-safe output—all in your browser.
JWT Decoder
Decode JWT header and payload locally. Inspect claims—signature is not verified.
JSON Formatter & Validator
Format, validate, and minify JSON. Tree view with syntax error highlighting.
Browse the free developer toolkit for every related tool and guide.