Content-Language Builder & Analyzer
Generate or analyze Content-Language response values using BCP 47-style language tags, including regional and script subtags. Validates common tag structure, wildcard usage, duplicates, and private-use caveats locally.
🔒 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
What Content-Language describes
This response header states the natural language of the representation a client just received, using BCP 47-style tags such as en-US or fr-CA. Analyze mode reads a pasted value and classifies each tag, while build mode assembles a clean header value from a comma-separated list and refuses values that fail validation.
Reading a language tag
A tag is checked in its standard order: a primary language subtag, an optional script such as Latn, an optional region such as US or a three-digit code, then variants, extensions and the x private-use tail. The checker accepts the common shapes and flags anything that does not fit, without claiming to know the full IANA registry.
Wildcards, duplicates and private use
A lone * is allowed because it can mean all languages are intended, but mixing it with explicit tags is called out. Repeated tags are reported, and a private-use x- subtag is flagged as opaque, since such tags mean different things to different applications and may not interoperate.
Metadata, not preference
Content-Language describes the resource; it is not the same as the Accept-Language a client sends. Every tag is parsed and validated inside this page with no network access, so no request detail leaves your device.
Questions
Is Content-Language the same as the user preferred language?
No. Content-Language describes the language or languages of the representation. Accept-Language expresses client preferences.
What does * mean?
The wildcard can indicate that all languages are intended or that no specific language was selected, depending on application context.
Does this fully implement BCP 47?
It validates common language, script, region, variant, extension, and private-use shapes. It does not maintain the complete IANA language-subtag registry.
Related tools
See category- HTTP Encoding Header Builder & Analyzer
- Cache Headers Builder & Analyzer
- HTML Meta Tag Generator
- :nth-child An+B Evaluator
HTTP Encoding Header Builder & Analyzer
Build or inspect Accept-Encoding and Content-Encoding negotiation values.
Cache Headers Builder & Analyzer
Build or analyze Cache-Control, CDN-Cache-Control, Surrogate-Control, Expires, Age, Cache-Status, and Vary.
HTML Meta Tag Generator
Generate SEO, Open Graph and Twitter card meta tags from page details.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.