DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeText / StringIETF Language Tag Validator

About IETF Language Tag Validator

IETF Language Tag Validator preview - Text / String tool

Validate BCP 47 tag (zh-Hant-TW) — canonical form + regions. Part of the DevTools Surf developer suite. Browse more tools in the Text / String collection.

Use Cases

  • i18n engineers validating language tags in translation config files
  • Frontend developers setting correct lang attributes in HTML documents
  • API developers validating Accept-Language headers from client requests
  • CMS developers ensuring locale codes match BCP 47 standards

Tips

  • Paste a BCP 47 tag like zh-Hant-TW to validate structure and region
  • Check the canonical form output to normalize inconsistent tag casing
  • Validate language tags before storing them in i18n config files

Fun Facts

  • BCP 47 (Best Current Practice 47) combines RFC 5646 and RFC 4647 to define language tags. It supports over 8,000 languages from the ISO 639 registry.
  • The subtag registry maintained by IANA contains over 9,000 entries including languages, scripts, regions, and variants — it is updated roughly every 2-4 weeks.
  • The longest valid BCP 47 tag can theoretically exceed 35 characters, like 'sl-Latn-IT-nedis' (Slovenian, Latin script, Italy, Nadiza dialect).

FAQ

What is a BCP 47 language tag?
The IETF format for language identifiers: language-script-region-variant. Examples: `en`, `zh-Hant`, `zh-Hant-TW`, `de-CH-1901`. Used in HTML lang attributes and Accept-Language headers.
Does the validator suggest canonical forms?
Yes — it converts deprecated codes (iw → he, in → id) to modern ones and removes redundant script tags (zh-Hans-CN → zh-CN when Hans is default for CN).
Are region subtags always uppercase?
Yes per spec, but the validator accepts any case and normalizes on output. Language subtags lowercase, script title case, region uppercase.
What about private-use tags?
Supported — `x-` prefix marks private-use subtags. The validator accepts them but warns they're not interoperable outside your system.

Related Text / String Tools

URL EncoderURL DecoderHTML Entity EncodeHTML Entity DecodeJWT DecoderLorem Ipsum GeneratorWord CounterText Diff
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback