Illustration of key-value pair rows combining into a percent-encoded query string

Query String Builder

Add key/value rows to build a query string, or paste an existing one below to load it into rows. Runs entirely in your browser.


ℹ️ How this works
  • Uses the browser's built-in URLSearchParams for encoding/decoding — spaces become +, special characters are percent-encoded, exactly as the browser would send them.
  • Rows with an empty key are skipped when building the query string.
  • Runs entirely client-side — nothing here is ever sent anywhere. The JSON API below is a separate, opt-in endpoint for scripts.
💻 Show API usage examples (cURL)

Build a query string:

curl -sS "https://devops.majbase.com/query-string-builder/api" \
    --data-urlencode 'direction=build' \
    --data-urlencode 'pairs=[{"key":"a","value":"1"},{"key":"name","value":"John Doe"}]'

Returns {"query_string": "?a=1&name=John+Doe"}.

Parse one back into pairs:

curl -sS "https://devops.majbase.com/query-string-builder/api" \
    --data-urlencode 'direction=parse' \
    --data-urlencode 'query_string=?a=1&name=John+Doe'

Returns {"pairs": [{"key":"a","value":"1"}, {"key":"name","value":"John Doe"}]}.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw