Link Header Parser
Decompose an HTTP Link header (RFC 8288) listing each URI with its parameters (rel, type, title). Useful for paginated APIs and Web Linking.
The Link header: relations in the header instead of the HTML
The Link header expresses in HTTP the same thing the link element expresses in HTML: a relation between the current resource and another. The advantage is that it works for responses that are not HTML — a JSON API can declare next and previous pages without inventing a field in the body, and that is exactly what the GitHub API does.
Parsing holds a trap the page handles: entries are separated by commas, but commas also appear inside URLs and inside quoted parameters. Splitting the header on commas without accounting for that cuts an entry in half, and the result is a truncated link that looks valid. Correct splitting ignores commas inside angle brackets and inside quotes.
The most used parameters are rel, which names the relation; type, which anticipates the target's media type; and title. rel is the only one required in practice, and its values come from an IANA registry — next, prev, first, last for pagination; preload and preconnect for performance; canonical and alternate for SEO.
Frequently asked questions
Link in the header or in the HTML?
How does pagination with Link work?
Can you declare canonical via the header?
Related Tools
Cache-Control Parser
Read a Cache-Control header and show each directive (max-age, no-cache, public, immutable, stale-while-revalidate) with explanation.
Authorization Header Parser
Identify the scheme (Basic, Bearer, Digest) of an Authorization header and extract the payload, decoding Basic from base64.
Range Header Parser
Decompose a Range header (bytes=0-499, bytes=-100, etc.) into individual ranges with start, end and size.
Data URI Parser
Break a data: URI into mediatype, parameters, base64 flag and payload. Shows decoded byte size of the content.
Cron Parser (describe expression)
Paste a cron expression and see in plain text when it will fire (e.g. "every day at 9am" for `0 9 * * *`). Lists the next N runs. Everything in your browser.
HTTP Cookie Parser
Paste a Set-Cookie header and inspect name, value, Domain, Path, Expires, Max-Age, HttpOnly, Secure and SameSite separately. Browser-only.