Skip to main content

Query String Parser

Break a URL query string into readable key-value pairs, with percent-encoding decoded. Paste a full URL or just the part after the question mark.

Reviewed for accuracy by the Math Ora X team Last updated

About this tool

Break a URL query string into readable key-value pairs, with percent-encoding decoded. Paste a full URL or just the part after the question mark.

Example

Input: ?name=Al%20B&age=30

Output: name = Al B\nage = 30

Privacy

This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.

How to use this tool

  1. Paste a full URL or just the query string after the question mark.
  2. Check that each parameter is on its own key-value pair, usually separated by ampersands.
  3. Review the parsed list to see each key and its decoded value.
  4. Use the output to spot missing values, repeated keys, or encoding issues.

Step by step, what happens

  1. The tool reads the text you paste and looks for the query part of a URL, or treats the whole input as a query string if that is what you provided.
  2. It splits the string into individual parameters wherever it finds ampersands.
  3. For each parameter, it separates the key from the value at the first equals sign it finds.
  4. It decodes percent-encoded text such as %20 or %26 so the results are easier to read.

Worked example

Here is a simple query string from a search page with one encoded value.

Input: q=hello%20world&page=2

  1. The tool splits the input into two parameters: q and page.
  2. It decodes the q value from hello%20world into hello world.
  3. It keeps page as 2 because there is no encoding to decode.

Output: q: hello world page: 2

Tips and common mistakes

  • You can paste either the full URL or only the part after the question mark, and the tool will focus on the query string.
  • If a value contains spaces or symbols like ampersands, check whether they are percent-encoded before the string is parsed.
  • Repeated keys will appear more than once in the parsed output, which is useful for filters or multi-select forms.
  • A parameter without an equals sign is usually treated as a key with no value, so do not assume it is broken.

Frequently asked questions

Can I paste a full URL?

Yes, anything before the ? is ignored.

Are encoded values decoded?

Yes, percent-encoding like %20 is decoded to readable text.

Are repeated keys shown?

Yes, each occurrence is listed.

More Developer Tools Tools

Explore related calculators in this category

You Might Also Like

Popular tools from other categories

Can't Find the Right Calculator?

Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.

Try AI Solver

Browse All Categories

Home Developer Tools Current Tool
Facebook Twitter WhatsApp