Qgenx Tools

URL Encoder / Decoder

Encode and decode URLs and query parameters locally in your browser with encodeURIComponent vs encodeURI modes and live query breakdown.

Runs in your browser
Ready
Encode
Mode
0
Query params
0
Input chars
0
Output chars

About this tool

Native encodeURIComponent/decodeURIComponent and encodeURI/decodeURI execute locally in JavaScript, while URLSearchParams counts query parameters safely and malformed percent sequences trigger a clear error badge. Debug webhook callbacks, OAuth redirect_uri values, and signed URLs.

How to use the URL encoder and decoder

  1. Choose Encode or Decode, then paste your text or URL into the input box.
  2. Pick the mode: Component for a single value, such as a search term, or Full URI for a whole address.
  3. Read the output box, which updates with every change.
  4. Copy the output, or use Swap to take the result back as the input.

Why URLs need encoding

A web address can only contain a limited set of characters. Spaces, accented letters, ampersands and question marks have special meanings in a URL, so they must be written as percent codes. A space becomes %20, an ampersand becomes %26 and é becomes %C3%A9. Encoding makes sure a value passed in a query string is read as one value, not split by the characters around it.

Component mode encodes everything that is not a safe letter or digit, which is right for a single parameter such as a search term. Full URI mode leaves the structure of an address alone, such as the colon, slashes and question mark, so the address still works.

A worked example

The sample address includes a search phrase with spaces, an ampersand inside a category name and an accented letter. In Component mode the search phrase and the category become safe values, so the ampersand inside Home & kitchen no longer ends the parameter early. Decoding the result returns the original text exactly.

  • Encode a search term that contains spaces and an ampersand before adding it to a link.
  • Decode a tracking link to see the campaign name in plain words.

Who uses a URL encoder

  • Developers building links, redirects and API requests with query parameters.
  • Marketers checking campaign links with UTM tags.
  • Support staff reading encoded links in logs and error reports.
  • Students learning how web addresses are built.
  • Anyone who needs a link with spaces or symbols to work in an email.

Tips and common mistakes

  • Encode each parameter value separately. Encoding a whole address in Component mode also encodes the slashes and colon, which breaks it.
  • Plus signs are read as spaces in some form encodings. Check which convention your server expects.
  • Decode only what you trust. A decoded value may contain characters that break a page if inserted without escaping.
  • Percent codes are case-insensitive, but a consistent case makes links easier to compare.
  • Your text stays in your browser. Links you encode here are not sent to our server.

Frequently asked questions

Use Component when encoding a single query parameter value or redirect URL. Use Full URI when encoding a complete web address with spaces or Unicode characters.

Related browser tools