Content-Location Builder & Analyzer
Generate or analyze Content-Location values for representation identity and caching diagnostics. Validates relative and absolute URI references, control characters, fragments, and suspicious whitespace without making network requests.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Naming a representation
A Content-Location header points at the URI for the particular representation a server returned, which can differ from the request URL when content negotiation chose a variant. Analyze mode classifies a pasted reference as an absolute URI, a network-path, or a relative reference, and build mode assembles a single valid header value from the location field.
What counts as valid
The checker rejects values that carry whitespace or control characters, since HTTP header field values cannot contain them, and treats the scheme of an absolute URI by attempting to construct it. A fragment is flagged with a warning because a #fragment is client-side and is not sent in a request, so it rarely describes a real representation.
Not a redirect
Unlike Location, Content-Location is metadata about the selected representation and does not move the client anywhere. The distinction matters for caching: a cache can store the payload keyed by this header without following it like a redirect.
Nothing is fetched
Validation is purely syntactic and runs in this page. The reference is never fetched, the tool makes no network request, and your pasted values are not uploaded or stored.
Questions
Is Content-Location the same as the request URL?
Not necessarily. It identifies a specific representation or resource associated with the response and may be relative or absolute.
Does it redirect the client?
No. Content-Location is metadata, not a redirect. Use Location with a redirect status to move a client.
Does this fetch the URI?
No. The tool only validates syntax locally and never makes a network request.
Related tools
See categoryURL Parser
Break a URL into protocol, host, path, query parameters and hash.
HTTP Status Code Reference
Look up HTTP status codes — what they mean and when APIs return them.
Cache Headers Builder & Analyzer
Build or analyze Cache-Control, CDN-Cache-Control, Surrogate-Control, Expires, Age, Cache-Status, and Vary.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.