Mixed-Width Text Checker
Check whether text mixes full-width and half-width characters as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What is mixed-width text?
In Chinese, Japanese and Korean writing, characters come in two widths. Full-width characters fill a square: Chinese characters, Japanese kana, Korean Hangul, and full-width forms of Latin letters and digits such as ABC and 123. Half-width characters take half that space: ordinary Latin letters, digits and punctuation, and the narrow half-width katakana of older Japanese computers, such as アイウ. Text with both kinds mixes widths, as ピクニック at 3pm does.
Mixed widths cause trouble when text is compared. 123 and 123 look alike, but a search box or a database sees different characters, so records that should match don't. Japanese forms often accept one width only, such as full-width katakana for the reading of a name.
Tool description
Type or paste text into the Text box, and the result shows as you type: "The text mixes full-width and half-width characters." or "The text doesn't mix full-width and half-width characters." Spaces count as characters, while line breaks and tabs count as neither width, so you can paste text over several lines. An empty box shows no result, and the page has no settings.
What counts as half-width and full-width
The page follows the rules of validator.js, which put every character other than a line break or a tab in one of two groups:
- Half-width: the letters A to Z without accents, the digits 0 to 9, the ordinary space and the punctuation of a US keyboard, plus the half-width forms of katakana, Hangul and a few signs
- Full-width: every other character, so not only Chinese characters, kana, Hangul,
ABCand the full-width space, but also accented letters such asé, Greek and Cyrillic letters, curly quotes and emoji
Examples
ピクニック ピクニックmixes, because the space between the words is the half-width one; with a full-width space in its place, it doesn't你好!mixes, while你好!, with a full-width exclamation mark, doesn'tピクニック at 3pmdoesn't mix, since half-width katakana and Latin letters are both half-width
Good to know
- Text in French, German or Russian often counts as mixed, since accented and Cyrillic letters count as full-width and spaces as half-width:
Bon appétitmixes because of itsé. - Text mixes widths exactly when both the Full-Width Character Checker and the Half-Width Character Checker find characters of their kind. For text that doesn't mix, those two show which kind it's made of.
Features
- Checks whether text mixes full-width and half-width characters
- Works with Chinese, Japanese and Korean text, full-width letters and digits
- Counts spaces, and skips line breaks and tabs
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere