UtilDojo

Popular

Menu

URL Encode & Decode Online

  • This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.

Text or URL

Encoded

Result appears here.

About this tool

URLs can only contain a limited set of ASCII characters, so spaces, symbols and non-English text are percent-encoded — a space becomes %20 and “नई” becomes a run of %XX bytes.

Component mode (encodeURIComponent) encodes everything that isn’t safe inside a single query value, including & = ? and /. Full URL mode (encodeURI) keeps the URL structure intact and only encodes characters that are illegal anywhere in a URL. For name=Asha Verma&city=नई दिल्ली, component mode gives name%3DAsha%20Verma%26city%3D%E0%A4%A8…, which is right for a single value but breaks the separators if you meant a whole query string. Full URL mode turns https://example.com/a b?q=x y into https://example.com/a%20b?q=x%20y and leaves the slashes and ? alone.

When decoding, “Treat + as space” handles form-encoded data where spaces were written as +. With it on, a+b%20c decodes to a b c; with it off you get a+b c. Paste a full URL to see its parts — protocol, host, port, path, query and fragment — and a table of every query parameter, already decoded.

Typical mistakes are encoding an already-encoded string (a % becomes %25, so %20 turns into %2520), and using Full URL mode on a value that contains & or =. If decoding shows “Malformed percent-encoding”, there is a lone % in the text. Everything runs in your browser and nothing is sent anywhere.

Frequently asked questions

Which mode should I use?

Use Component when encoding a single value to put inside a query string. Use Full URL when you have a whole address and only want to fix illegal characters.

Why is a space sometimes + and sometimes %20?

HTML forms encode spaces as + (application/x-www-form-urlencoded) while URLs in general use %20. Both decode to a space with the right option.

What does “Malformed percent-encoding” mean?

There is a % sign that isn’t followed by two hexadecimal digits, or the bytes don’t form valid UTF-8.

What does double encoding look like?

A space turns into %20, and encoding that again gives %2520. If you see %25 in the output where you expected %, decode once to undo it.

Does it handle non-English text?

Yes. Characters are converted to UTF-8 bytes first, so Hindi, accented letters and emoji encode and decode correctly.

Related tools