Skip to content
Palmate Solutions

Web

URL Encoder, Decoder & Query String Parser

Encode and decode URLs, query strings, and URI components conforming to RFC 3986. Includes an interactive visual query parameter table, JSON generator, and URL anatomy deconstructor.

148 chars
Encoding Strategy:
Spaces:

How it works

URL percent-encoding replaces non-ASCII characters and RFC 3986 reserved characters (such as :, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, =) with a percent sign followed by their two-digit hexadecimal ASCII/UTF-8 byte representations. Under the hood, this utility uses encodeURIComponent() for parameter components, preserving only alphanumeric characters and - _ . ! ~ * ' ( ), while encodeURI() preserves structural protocol and pathname slashes. Query strings are parsed into WHATWG URLSearchParams instances and mapped to a normalized JSON dictionary.

How to use it

  1. Paste any URL, URI component, or query string into the input area or click 'Load Sample URL'.
  2. Choose 'Component' (encodeURIComponent) for individual parameter values or 'Full URL' (encodeURI) for complete URLs.
  3. Select RFC 3986 (%20) or standard form-data (+) space encoding.
  4. Click 'Encode URL' or 'Decode URL' to generate safe, percent-encoded strings.
  5. Switch to 'Query Params Table & JSON' to view, edit, add, or export parameters as structured JSON.

Worked Examples

Example 1: Escaping Reserved Characters in Query Parameters

Worked Example

Sending an email address and filter term containing symbols inside a GET request query string.

Input Payload

[email protected]&role=lead/manager

Output / Result

filter=ops%2Bsupport%40company.com&role=lead%2Fmanager

Why this happens: The + symbol (which otherwise decodes into a space) and the / symbol are converted into safe hexadecimal tokens (%2B and %2F), preserving literal values.

Example 2: Decoding Percent-Encoded Analytics Redirects

Worked Example

Inspecting an encoded marketing attribution tracking link from an email campaign.

Input Payload

https%3A%2F%2Fpalmatesolutions.com%2Ftools%3Futm_source%3Dnewsletter%26utm_medium%3Demail

Output / Result

https://palmatesolutions.com/tools?utm_source=newsletter&utm_medium=email

Why this happens: The decoder strips percent sequences and restores standard ASCII protocol, path, and parameter delimiters for clear inspection.

Example 3: Parsing Query Parameters to API JSON

Worked Example

Extracting multiple query parameters into a JSON payload for backend mock testing.

Input Payload

?category=cloud&tags=aws&tags=docker&limit=50

Output / Result

{
  "category": "cloud",
  "tags": ["aws", "docker"],
  "limit": "50"
}

Why this happens: Repeating keys are collected into JSON arrays while standalone parameters become top-level JSON key-value pairs.

Edge Cases & Failure Modes

Plus Sign (+) vs %20 Space Inconsistency

In query strings (application/x-www-form-urlencoded), a space is often represented as '+'. However, RFC 3986 URI paths require '%20'. Treating '+' as a literal plus instead of a space causes data corruption.

Handling: Use the Space Encoding toggle to explicitly choose between RFC 3986 percent-encoding and form-data encoding.

Double-Encoding Bugs

Encoding an already-encoded string turns '%20' into '%2520', creating unintended escape sequences that fail upstream backend routing.

Handling: Always verify input state before encoding; if unsure, decode first to reach a clean UTF-8 plaintext baseline.

Malformed Percent Sequences

Encountering an isolated '%' without two trailing hexadecimal digits triggers a JavaScript URIError during decoding.

Handling: Our utility catches native parser exceptions and highlights the malformed sequence without crashing the browser tab.

Privacy & Local Execution Guarantee

All percent-encoding, decoding, and URL dissection execute 100% inside your local browser via native ECMAScript URI APIs and WHATWG URL parsers. Query strings, API keys, or target endpoints are never transmitted over the internet or logged on any remote server.

Frequently Asked Questions

What is the difference between encodeURI() and encodeURIComponent()?

encodeURI() is meant for complete URLs and does not encode structural characters like : / ? # & =. In contrast, encodeURIComponent() is designed for query parameter keys and values, escaping all reserved delimiters to prevent parameter injection.

Why does standard URL decoding turn '+' into a space?

The HTML form specification (application/x-www-form-urlencoded) traditionally mapped spaces to '+'. Our decoder normalizes '+' to space by default so query parameters captured from form submissions decode accurately.

Can this tool handle multi-byte Unicode characters (emojis, CJK, accents)?

Yes. Characters outside standard ASCII are first encoded into their multi-byte UTF-8 representation (e.g. πŸš€ becomes %F0%9F%9A%80) conforming to RFC 3986 Β§2.5.

Is there any limit to the URL length this tool can process?

Because parsing executes client-side in your browser's V8 engine, URLs and payloads up to several megabytes process in milliseconds without timeout constraints.

API ArchitectureEngineers Available

Enterprise API Gateways & Resilient Client SDKs

Building bulletproof input validation, API routing pipelines, zero-trust parameter sanitization, and SDK wrappers for enterprise developers?

  • Zero-loss retry policies & idempotency layers
  • Production OAuth 2.0 / mTLS gateway integration
  • Fixed-timeline delivery with enterprise SLAs

Next step

Need production-grade systems, resilient APIs, or cloud infrastructure?

Our senior software architects design, build, and optimize mission-critical software systems on deterministic timelines.