Free Tool · No Sign-Up · No Tracking
Encode and decode URLs, query strings and parameters with component-level or full-URL encoding, plus clear errors on invalid input. Instant and fully private.
Standard percent-encoding handled locally in your browser — nothing is uploaded.
URLs are only allowed to contain a small safe alphabet of characters. Everything else — spaces, &, ?, #, emojis and non-ASCII letters — must be percent-encoded (for example a space becomes %20 and ? becomes %3F) so the URL is unambiguous to servers and browsers.
This is also why query parameters carrying user input are always encoded: it prevents an argument like a&b=broken from being split into two parameters, and it is the first line of defense against injection attacks.
The two modes differ in what they leave untouched:
encodeURIComponent) escapes almost everything, including :, / and ?. Use it for the value of a single query parameter.encodeURI) keeps structural characters like :, / and ? intact. Use it for an entire URL that already contains its separators.Picking the wrong mode is a classic bug: encoding a whole URL with encodeURIComponent produces https%3A%2F%2F…, which no browser will navigate to.
When decoding, the biggest issue is bad input: a stray % not followed by two hex digits, or an invalid sequence like %ZZ. Many tools throw an exception or silently corrupt the output. Our decoder detects the invalid sequence and tells you exactly where it is.
A second gotcha: URLs in analytics and tracking links often arrive double-encoded (e.g. %2520 for a space). If the decoded text still shows % sequences, run it through once more.
?next=….Pair it with our Base64 encoder when a value needs both encodings.
Frequently Asked
Common questions about URL encoding, answered by our web experts.
Our free tools help developers, designers and businesses around the world. Explore related pages while you are here.
IP Checker →
Find your public IP address instantly with your city, ISP, network and timezone details. No sign-up, fully private.
IP Lookup →
Look up geolocation, country, ISP, ASN and timezone for any IP address or domain, with a map view.
WHOIS Lookup →
Check any domain's registrar, registration and expiry dates, nameservers and status codes in seconds.
DNS Lookup →
Resolve A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records for any domain with live TTL values.
Password Generator →
Generate cryptographically random, unbreakable passwords with custom length and character sets. Runs in your browser.
Text Case Converter →
Convert text to upper, lower, title, sentence, camelCase, snake_case and more. 100% in your browser.
UUID Generator →
Generate RFC 4122 version 4 UUIDs in bulk — with or without hyphens, upper or lower case. Runs in your browser.
JSON Formatter →
Beautify, minify and validate JSON instantly with clear error messages. Perfect for developers and API work.
Base64 Converter →
Encode or decode Base64 text instantly with full UTF-8 support for emojis and non-Latin scripts. Runs in your browser.
Word Counter →
Count words, characters, sentences and paragraphs with reading time. Instant, private and free.
QR Code Generator →
Create unlimited QR codes for URLs, text, Wi-Fi and more. Customize size and colors, then download as PNG.
Random Number Generator →
Generate secure random numbers in any range, with or without repeats. Uses cryptographically secure randomness.
Color Converter →
Convert colors between HEX, RGB and HSL with a live preview and copy buttons. Perfect for designers and developers.
SHA Hash Generator →
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text right in your browser. Nothing is uploaded.
Currency Converter →
Convert between 160+ world currencies with live daily exchange rates. Includes USD, EUR, GBP, PKR, INR and more.
Temperature Converter →
Convert temperature between Celsius, Fahrenheit and Kelvin instantly as you type. Simple, accurate and free.
List Randomizer →
Shuffle any list, pick random winners, or draw one lucky item — perfect for giveaways, draws and lottery picks.
Web Hosting →
Fast, secure hosting plans built for businesses worldwide.
Domains →
Register and manage .com, .pk and country-code domains.
SEO Services →
Data-driven SEO that helps local businesses rank on Google.
What is DNS? →
Learn how the domain name system connects IPs to websites.
SSL Certificates →
Understand SSL and why every website needs encryption.
All Free Tools →
Browse the full collection of tools from The Stockit.
From blazing-fast hosting to SEO and web development, The Stockit builds and manages websites that rank and convert for businesses everywhere.