URL Decode & Encode

Paste a URL or encoded text to decode percent-encoding like %20 and %C3%A9 back into readable characters, or encode text so it is safe to put in a link. You can treat + as a space, get a clear message when an encoded sequence is broken, and see every query parameter laid out in a table.

Mode
Turns %XX sequences back into characters (decodeURIComponent).

Runs entirely in your browser. Nothing you enter is uploaded or stored.

Rate this tool

Be the first to rate this tool

How to use the URL Decode & Encode

  1. Choose Decode, Encode component or Encode full URL.
  2. Paste your URL or text into the Input box. The output updates as you type.
  3. Keep “Treat + as a space” on for form data and query strings; turn it off for paths where + is a literal plus.
  4. Copy the output, and check the query parameter table to see each key and value decoded.

What is URL encoding?

URLs may only contain a limited set of characters. Spaces, accented letters, emoji and symbols with special meaning, such as &, ?, # and /, have to be written as percent-encoded bytes: a % sign followed by two hexadecimal digits. A space becomes %20, an ampersand becomes %26, and “é” becomes %C3%A9 because it takes two bytes in UTF-8. URL decoding reverses the process so you can read what a link really contains.

Encode component vs. encode full URL

  • Encode component uses encodeURIComponent. It escapes everything except letters, digits and - _ . ! ~ * ' ( ), including / ? & = #. Use it for a single value you are putting into a query string, like a search term or a redirect address.
  • Encode full URL uses encodeURI. It leaves the characters that give a URL its structure alone (: / ? & = #) and only escapes spaces, non-ASCII characters and other unsafe symbols. Use it to clean up a whole link that has spaces or accented letters in it.

A common bug is encoding a whole URL with the component method, which turns https:// into https%3A%2F%2F. Another is decoding twice, which can break values that genuinely contain a percent sign. If the output still contains sequences like %2520, the text was probably encoded twice, and the tool will point it out.

Plus signs, spaces and broken sequences

HTML forms and many search engines write spaces as + in query strings (the application/x-www-form-urlencoded format). With “Treat + as a space” on, the decoder converts them to spaces, and in Encode component mode spaces are written as + instead of %20. Turn it off when a plus sign should stay a plus, such as in a path or a phone number.

If the input contains a % that is not followed by two hex digits, or bytes that do not form valid UTF-8, a plain decoder just fails. This tool tells you exactly which sequence is malformed and where it is, so you can fix it.

Reading query strings

When the input contains a query string, every key=value pair is listed in a table with the value decoded, which makes long tracking links and API calls much easier to inspect. To build tagged campaign links from scratch, use the UTM link builder. For other encodings, try Base64 encode and decode, tidy API responses with the JSON formatter, or make readable URL paths with the text to slug converter. Everything runs in your browser, so private links are never uploaded.

Examples

  • hello%20world%21 → hello world! (decode)
  • caf%C3%A9+au+lait → café au lait (decode, + as space)
  • a&b=c d → a%26b%3Dc%20d (encode component)
  • https://example.com/my file.pdf → https://example.com/my%20file.pdf (encode full URL)

URL Decode & Encode FAQ

How do I decode a URL?

Keep the Decode mode selected and paste the URL or text. Every %XX sequence is converted back into its character, and the result appears in the Output box.

What does %20 mean in a URL?

%20 is a percent-encoded space. The number 20 is the hexadecimal code of the space character. Other common ones are %2F for /, %3F for ?, %26 for & and %3D for =.

Should + be decoded as a space?

In query strings and form data, yes, because forms encode spaces as +. In the path part of a URL, + usually means a literal plus sign, so turn the option off there.

Why do I get a “malformed” error?

A % sign must be followed by two hexadecimal digits, and the bytes must form valid UTF-8. The error message shows which sequence breaks those rules and its position in the input.

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps URL structure characters like / ? & = # intact and is meant for whole URLs. encodeURIComponent escapes those too and is meant for single values inside a URL.

Is my URL sent anywhere?

No. Encoding, decoding and parsing all run in your browser.

Related tools

All Developer Tools
JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages.Base64 Encode / DecodeEncode or decode Base64 for text and files, UTF-8 safe.Compare Two ListsFind differences, common items, and unique entries between two text lists.Cron Expression GeneratorBuild cron schedules with simple menus, or paste any cron expression to explain it in plain English and see the next 5 run times.Diff CheckerCompare two texts and see every added, removed and changed line, with word or character highlights, side by side or unified.HEX to RGB ConverterConvert HEX color codes to RGB, RGBA and HSL and back, with a live swatch, color picker, alpha control and copy-ready CSS.JSON to CSVConvert a JSON array to CSV with nested objects flattened into dot-named columns, comma, semicolon or tab delimiters and a live preview.JSON to ExcelConvert a JSON array to a real Excel .xlsx spreadsheet or CSV, with nested objects flattened into dot-named columns and a live preview.PX to REM ConverterConvert pixels (px) to rem and rem to px with custom root font size and CSS table.Regex TesterTest JavaScript regular expressions live: highlighted matches, capture and named groups, indices, flags and a replace preview.Unix Timestamp ConverterSee the current Unix epoch time live, convert timestamps in seconds, milliseconds or microseconds to dates, and dates back to timestamps.Online NotepadA free online notepad that saves automatically in your browser. Write notes, then copy, print or download them.PNG to JPGConvert PNG images to smaller JPG files with a custom background.