linkDev Tool

URL Parser & Encoder

Parse any URL into its components, or encode and decode strings for safe use in URLs.

linkEnter a URL to parse
errorInvalid URL
shuffleURL Encode / Decode
Plain Text / Decoded
swap_horiz
URL Encoded
Encoding mode

Frequently Asked Questions

URL encoding (percent-encoding) converts characters that are not safe in URLs into a format that can be transmitted. Unsafe characters like spaces, &, =, and # are replaced with a percent sign followed by their two-digit hex code. For example, a space becomes %20.
encodeURI encodes a complete URL but leaves structural characters like : / ? # & = intact. encodeURIComponent encodes a single component (like a query parameter value) and also encodes those structural characters, making it safe to embed inside a URL.
Query parameters are key-value pairs appended to a URL after a ? character, separated by & symbols. Example: ?name=John&age=30 has two parameters. They are used to pass data to web servers without needing a form submission.
The fragment (or hash) is the part of a URL after the # character, e.g., #section-2. It is processed by the browser only — it is never sent to the server. It is typically used to scroll to a specific section of a page or for client-side routing in single-page apps.

About the URL Parser

Break any URL into its component parts: protocol, hostname, port, path, query string parameters (displayed as key-value pairs), and fragment. Also encodes and decodes URL components and builds URLs from parts you supply. Useful for debugging web requests, understanding redirect targets, and working with API query strings.