ISO 15924 Script Code Validator
Check whether text is a valid ISO 15924 script code as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What is an ISO 15924 script code?
ISO 15924 gives each writing system a four-letter code that starts with a capital letter: Latn for the Latin alphabet, Cyrl for Cyrillic, Grek for Greek, Arab for Arabic, Deva for Devanagari, and Hans and Hant for simplified and traditional Chinese characters. The Unicode Consortium keeps the list as the standard's registration authority. Script codes appear in locale codes for languages written in more than one script, such as sr-Latn for Serbian in Latin letters, and in Unicode data, font tools and typesetting software.
Developers, translators and font designers check script codes when they build locale codes, tag text in documents or apps, or set up fonts for several writing systems.
Tool description
Type or paste a code into the ISO 15924 script code field, and the result shows as you type: "ISO 15924 script code is valid" or "ISO 15924 script code is not valid". Spaces and line breaks around the code are ignored. The page has no settings.
What passes and what fails
- Four letters written the way the list writes them, capital first and the rest small:
Latn,Hebr,Thai - Any other capitalization fails:
latnandLATNdon't pass, even though locale codes ignore case - The standard's three-digit numbers, such as
215for Latin, fail: the page checks the letter codes only - Script names and shorter forms fail:
Latin,Lat
Special codes that pass
Jpanfor Japanese (Han characters with hiragana and katakana) andKorefor Korean (Hangul with Han characters)Zyyyfor characters many scripts share, such as digits and punctuation, andZinhfor marks that take the script of the letter before themZmthfor mathematical notation,Zsyefor emoji andZsymfor other symbolsZxxxfor unwritten material andZzzzfor a script that has no code- The private-use codes from
QaaatoQabx, which you can agree on for scripts of your own
Good to know
- A code that passes is in the copy of the list that comes with validator.js. Unicode adds scripts from time to time, so a code added very recently may fail until the library catches up.
- For whole locale codes such as
sr-Latn-RS, use the Locale Code Validator, and for the language part, the ISO 639-1 Language Code Validator.
Features
- Checks four-letter ISO 15924 codes against the list
- Special and private-use codes included
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere