URL Encoder / Decoder
Free URL encoder and decoder. Percent-encode text for query strings or decode %20-style URLs back to readable text — with component and full-URI modes.
About the URL Encoder / Decoder
A URL encoder/decoder that percent-encodes text for use in URLs or decodes %20-style URLs back to readable text, with two modes — value-safe component encoding and structure-preserving full-URI encoding.
This tool encodes text safely for use in URLs, and decodes encoded URLs back into something a human can read. URLs can only carry a limited set of characters. Spaces, ampersands, question marks, non-English characters — anything outside that set must be percent-encoded (a space becomes %20, an ampersand %26) or the URL breaks in transit: query parameters get split in the wrong places, links in emails stop working, APIs reject requests.
The component/full-URI distinction is the part everyone gets wrong once. Component mode encodes every reserved character including &, = and / — exactly what you want when inserting a value into a query string, so that "Tom & Jerry" becomes Tom%20%26%20Jerry instead of accidentally terminating the parameter at the &. Full-URI mode leaves the structural characters (:, /, ?, &) intact — what you want when encoding a complete URL that must keep its shape while fixing spaces and unicode. Encoding a whole URL in component mode mangles it; encoding a query value in URI mode leaves dangerous characters unescaped.
Decoding is just as useful in daily work: unwrapping tracking-laden links from marketing emails to see the real destination, reading the parameters buried in an OAuth redirect, or turning a logged request URL back into legible text. Everything runs locally in your browser, and malformed input (a stray % not followed by two hex digits) produces a clear error instead of silent corruption.
How to use the URL Encoder / Decoder
- Paste your text or URL into the input box.
- Choose whether you want to Encode or Decode.
- Select the mode: Component for query parameters, or Full URI for whole URLs.
- Click Convert to get your percent-encoded or decoded string.
Worked example
"name=Ravi Kumar&city=New Delhi" in component-encode returns name=Ravi%20Kumar%26city%3DNew%20Delhi — a query value stays one parameter. Decoding that back yields the original text.
Formula
Encode: reserved characters become %HH (space → %20, & → %26, = → %3D). Decode: %HH sequences are converted back to their characters. Component mode encodes &, = and /; full-URI mode leaves those structural characters intact.Frequently asked questions
- When do I use component vs full-URI mode?
- Component mode when encoding a single value going into a query string (it encodes &, =, / too). Full-URI mode when encoding a complete URL that must keep its structure. Rule of thumb: values → component, whole URLs → URI.
- Why does a space sometimes appear as + instead of %20?
- The + convention comes from the older form-encoding format used in HTML form submissions. Modern percent-encoding uses %20. Most servers accept both in query strings, but %20 is the safe universal choice.
- Why did decoding fail?
- The input contains a % that isn't followed by two hexadecimal digits — usually a URL that was already partially decoded or hand-edited. Fix or remove the stray % and decode again.
- Can I encode just the query parameters of a URL?
- If you have a full URL but only want to encode the query string values, it's best to extract the values, encode them using Component mode, and then reassemble the URL. Using Full URI mode will encode spaces and special characters but leave structural ones like '&' and '=' untouched.
- Does this tool support Unicode characters?
- Yes, it fully supports Unicode. Characters like emojis or non-English text are first converted to their UTF-8 byte representation before being percent-encoded.
More from Avexora
All Avexora products →Business software from the team behind these free tools.
- CRM
Avexora AI CRM
A CRM and project workspace for growing businesses.
Visit Avexora AI CRM - WhatsApp Business API
AvexWA
WhatsApp Business API platform for broadcasts, chatbots and automation.
Visit AvexWA - AI business ecosystem
Avexora AI EBOS
From a blank page to a live funnel in minutes.
Visit Avexora AI EBOS - Enterprise AI
Avexora AI
Enterprise-grade AI systems for operations and growth.
Visit Avexora AI - AI voice calling
Avexora AI Voice Agents
Your business phone, answered by AI in every language, every hour.
Visit Avexora AI Voice Agents - OMR exam software
Avexora ExamOS
AI-powered OMR scanning and exam management for schools.
Visit Avexora ExamOS
Related tools
Free base64 encoder and decoder. Convert any text to base64 or decode base64 back to text, with full Unicode support — runs entirely in your browser.
HTML Entity Encoder / DecoderFree HTML entity encoder and decoder. Escape <, >, & and quotes for safe HTML display, or decode named and numeric entities back into readable text.
UTM Link BuilderFree UTM link builder. Add utm_source, utm_medium, utm_campaign, term and content parameters to any URL with correct encoding for campaign tracking.
URL Slug GeneratorFree URL slug generator. Convert page titles into clean lowercase slugs with hyphens or underscores — paste multiple titles and get one slug per line.
