Encode tool

URL Parser

Parse a URL into protocol, host, path, query parameters, hash and origin.

Use the tool

Common use cases

  • Encode values for URLs and HTML.
  • Decode copied tokens and payload snippets.
  • Inspect data without switching tools.

Example input

https://aijsonformat.com/tools/json-formatter/?utm_source=chat&q=json#tool

Related tools

FAQ

What URL parts are shown?

The parser returns protocol, hostname, port, path, query parameters, hash and origin.

Can it parse relative URLs?

Yes. Relative URLs are resolved against this site's domain for parsing.

Is the URL sent to a server?

No. URL parsing uses the browser URL API locally.