Skip to content

Parse a URI

Split a URI into scheme, credentials, host, port, path, query, and fragment.

Install in Serialize

What it can do

  • Separate URI components
  • Expose explicit ports and credentials
  • Keep encoded query data visible

How the recipe works

Parse URI

Parse the URI according to its structural delimiters.

Demonstration

Sample input

https://user:[email protected]:8443/a/b?q=hello%20world#part

Expected result

Hostname:	example.test

When to use it

  • Application debugging
  • Log analysis
  • Teaching URI anatomy

Adapt it

Run URL Decode on individual fields only when their encoded representation needs interpretation.

Source and verification

Adapted from GCHQ CyberChef Node API examples. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close