TASK
Parse a URL into components and construct URLs from parts
Decompose a URL into protocol, host, path, query, fragment — and build a URL from individual components safely.
- 1
URLs have a precise structure (RFC 3986): scheme, authority, host, port, path, query, fragment. Parsing decomposes a URL for inspection or modification; construction reassembles parts with proper encoding.
- 2 URL Parser →
Paste a URL. The tool decomposes it into protocol, host, port, pathname, search params, and hash, each editable for reconstruction.
- 3 URL Encoder →
When constructing a URL with query parameters that contain special characters, encode each parameter value here before assembling.
- 4 URL Decoder →
To inspect an encoded URL, decode it here — useful for understanding redirect URLs that are themselves URL-encoded as a parameter.
Frequently asked questions
- What is the difference between search and searchParams?
- search is the raw query string including the leading '?' (e.g. ?a=1&b=2). searchParams is a parsed URLSearchParams object that lets you get, set, and delete individual parameters without string manipulation.
- How do I handle URLs with encoded slashes (%2F)?
- Some servers decode %2F to / in the path (allowing encoded slashes), others treat it literally. The parser preserves %2F as-is. When constructing, encode slashes in path segments that should not be interpreted as path separators.
Workflows that solve this
Encode a JSON payload for URL transport
Prepare a JSON document for a URL parameter: pretty-print, Base64-encode, then percent-encode — the exact inverse of the nested-parameter decode chain. PIPELINE
Punycode Decode and URL Parse
Decode Punycode domain then parse the full URL. PIPELINE
Kebab Case and URL Encode
Convert to kebab-case then URL-encode for safe URL slugs. PIPELINE
Decode URL and show hex bytes
Percent-decode a URL-encoded string then view its hexadecimal byte representation for low-level analysis. PIPELINE
URL Decode and Parse
URL-decode then parse the URL into components. PIPELINE
URL double decode
Decode a URL-encoded string that has been encoded twice, recovering the original plaintext. PIPELINE
URL Encode then Base64 Double Encode
URL-encode then Base64-encode for double encoding in API payloads. PIPELINE
Encode a text payload for URL transport
Percent-encode text then show its hex representation for safe URL parameter transport. PIPELINE
Decode nested URL parameter (Base64 JSON)
Unwrap a URL parameter that carries URL-encoded Base64 JSON into readable, formatted JSON. PIPELINE
Learn more
Want to understand why?
How to Build Query Strings
A beginner-level guide covering query-string, url, building. Includes step-by-step instructions, common errors, troubleshooting tips, and security considerations for query-string. TUTORIAL
How to Extract URLs from Text
Find and extract all URLs from unstructured text using pattern matching. TUTORIAL
ALPN
ALPN (Application-Layer Protocol Negotiation, RFC 7301) negotiates the application protocol (e.g., h2, http/1.1) during the TLS handshake, avoiding an extra round trip. GLOSSARY
AMQP
AMQP is an enterprise-grade message queue protocol that defines routing, queue, binding, and transaction semantics, implemented by RabbitMQ and others. GLOSSARY
Related tools
URL Parser
Parse a URL into its components: protocol, host, path, query, hash, port, username, and password. Free, private, and 100% client-side. TOOL
URL Encoder
Percent-encode text for safe use in URLs. Free, private, and 100% client-side. TOOL
URL Decoder
Decode percent-encoded URL text back to readable characters. Free, private, and 100% client-side. TOOL