🔡 Japanese Character Counter (文字数・バイト数)
Paste Japanese text to count characters (with and without spaces), bytes in UTF-8 and Shift-JIS, lines, and full-width vs half-width characters instantly.
What is this tool?
Counting text in Japanese is not as simple as it looks. A single "character" can be a half-width Latin letter (1 byte in Shift-JIS), a full-width kana or kanji (2 bytes in Shift-JIS), or a full-width Latin letter (also 2 bytes). Forms, databases, and legacy Japanese systems often have limits expressed in byte counts rather than character counts, so a string that fits in 30 characters may overflow a 30-byte field. Knowing both the character count and the byte count - in both UTF-8 and Shift-JIS - is essential for filling out Japanese web forms, designing database columns, and writing SMS or tweet-length copy.
This Japanese character counter reports the character count with and without spaces, the line count, the UTF-8 byte count, the Shift-JIS byte count, and a breakdown of full-width vs half-width characters. It is built for writers localising copy into Japanese, developers sizing database fields, and anyone filling out a Japanese government or banking form with a byte limit. For the related tasks of converting kana or romanising text, use the kana converter and the romaji converter.
Refer to the table below for how different character types contribute to the counts:
| Character type | Example | UTF-8 bytes | Shift-JIS bytes |
|---|---|---|---|
| ASCII (half-width Latin) | A, 1, ! | 1 | 1 |
| Full-width Latin | A, 1, ! | 3 | 2 |
| Hiragana / Katakana | あ, ア | 3 | 2 |
| Kanji (CJK) | 日, 本, 語 | 3 | 2 |
| Half-width katakana | ア, イ, ウ | 3 | 1 |
| Emoji | 😀 | 4 | n/a |
How it works
The counter walks the input once and, for each character, records its UTF-8 byte length (1 for ASCII, 2 for Latin-1 supplement and Greek, 3 for kana, kanji, and most symbols, 4 for emoji and astral-plane characters) and its Shift-JIS byte length (1 for ASCII and half-width katakana, 2 for full-width kana, kanji, and full-width Latin). It also classifies each character as full-width or half-width by checking its Unicode block, and counts spaces and line breaks separately so you can get a "no spaces" total.
The table below lists the Unicode ranges used to classify width:
| Width | Unicode blocks | Typical contents |
|---|---|---|
| Half-width | U+0000–U+007F, U+FF61–U+FFDC | ASCII, half-width katakana |
| Full-width | U+3040–U+30FF, U+4E00–U+9FFF, U+FF00–U+FF60 | kana, kanji, full-width Latin |
| Other | emoji, combining marks | counted per UTF-8 byte length |
All counting runs locally in your browser, so even sensitive text never leaves your device. To prepare the text first - normalising width, converting kana, or romanising - pair this tool with the kana converter and the romaji converter, or check readings with the kanji reading lookup.
How to use
- Paste your Japanese (or mixed) text into the input box.
- The counters update instantly as you type or paste.
- Check the character count with and without spaces.
- Check the UTF-8 and Shift-JIS byte counts for form or database limits.
- Use the full-width vs half-width breakdown to plan width normalisation.
Frequently Asked Questions
Why are there two different byte counts?
Different systems encode Japanese differently. Modern web pages use UTF-8 (where a kanji is 3 bytes), while many older Japanese government and banking systems use Shift-JIS (where a kanji is 2 bytes). The tool reports both so you can match whichever system is checking your input.
When a form says it takes 30 bytes, which encoding does it mean?
It almost always means Shift-JIS bytes, because that is the legacy encoding Japanese back-end systems still use. Plan for 2 bytes per full-width character in that case.
How are emoji counted?
Emoji are typically 4 bytes in UTF-8 and are not representable in basic Shift-JIS, so they often cause legacy forms to reject the input. The counter shows their UTF-8 byte cost so you can spot them.
Does it count words as well as characters?
It focuses on characters and bytes because Japanese has no spaces between words, making a space-split word count unreliable. The character count is the standard length metric for Japanese text.
What is the difference between full-width and half-width?
Half-width characters (A, 1, ア) are narrow and cost 1 Shift-JIS byte; full-width characters (A, 1, ア, 日) are wide and cost 2. Full-width Latin and digits are produced by Japanese IMEs and are often normalised to half-width before submission.
Is my text sent to a server?
No. All counting happens in your browser with JavaScript. Nothing is uploaded, stored, or logged, so it is safe to paste private or draft text.
Tips & Advice
When a Japanese form says it accepts "30 bytes", it almost always means Shift-JIS bytes, because that is the legacy encoding most government and banking systems still use internally - so plan for 2 bytes per full-width character. Full-width digits and Latin letters (0123, ABC) cost 2 Shift-JIS bytes each, while their half-width twins cost 1, so normalising to half-width before submission often saves space. Emoji count as 4 UTF-8 bytes and are usually rejected by legacy forms. For tweets and other Unicode-aware systems, the UTF-8 count is what matters. If you need a word count for Japanese, remember that Japanese has no spaces, so a space-split word count is unreliable - the character count is the standard metric instead. To clean up width before counting, run the text through the kana converter first.
Related Tools
Hiragana to Katakana Converter
Convert hiragana to katakana and katakana to hiragana instantly in your browser.
Romaji Converter
Convert hiragana and katakana to romaji in Hepburn, Kunrei-shiki, or Nihon-shiki
Furigana Generator
Add furigana readings above kanji in Japanese text. Free browser-based furigana
Okurigana Helper
Check correct okurigana spelling for common Japanese verbs and adjectives. Free
Kanji Reading Lookup
Look up the onyomi and kunyomi readings of any common kanji. Free browser-based
Character Counter
Count characters, words, sentences, and paragraphs instantly. Free online charac
Word Counter
Count words, characters, sentences, paragraphs, and reading time online for free
Sources & References
- Unicode Standard, Chapter 3 — encoding model for CJK characters (full-width U+FF01-FF5E vs half-width U+0021-007E)
- JEITA (Japan Electronics and Information Technology Industries Association), "Shift-JIS character encoding standard"
Limitations
- UTF-8 byte counts are exact for all Unicode characters. Shift-JIS byte counts assume the character is representable in Shift-JIS; characters outside the Shift-JIS range (e.g., some emoji) are counted as 3 bytes.