Switching language reloads this page. Copy or save any inputs and results first.
05 / TEXT
Character count
From visible characters to code points.
Preview as you type
25 charsUTF-8 · Up to 200,000 characters
Inputs and results are processed only in this browser and are not saved.
How to use, examples and questions
Check character counts, counts excluding whitespace / line breaks and line counts. For strings with emoji, compare visible characters, code points and the count used by JavaScript length.
Character count — how to use
Paste the text you want to count.
Check the count you need, such as “Visible characters” or “Excluding whitespace / line breaks”.
When checking a program's character limit, also compare code points and UTF-16 code units.
Input and output examples
Count Japanese text and emoji
Input
Aあ😀
Output
見た目の文字数: 3
コードポイント: 3
UTF-16コード単位: 4
UTF-8バイト数: 8
Frequently asked questions
Why is this different from JavaScript length?
JavaScript length counts UTF-16 code units. Characters such as 😀 take two units, so that count may differ from visible characters.
How are line breaks and combined emoji counted?
Line breaks count as characters. Visible characters use grapheme clusters; supported browsers count combined emoji together. Counts excluding whitespace use code points.
Specifications and limits
Visible characters use grapheme clusters; code points use Unicode characters; UTF-16 uses the same units as JavaScript length. Counts excluding whitespace use code points. Each line break counts as one character; a trailing line break adds an empty line.
Analytics and privacy
Conversion inputs and results are processed in your browser. Image URL and OGP loads connect directly to your chosen destination only when you select the corresponding button. Image, video, Markdown, HTML, CSV and TSV files are not uploaded to our servers. Self-signed certificates and signatures are generated locally; private keys are never sent to our servers or analytics. Markdown external images and HTML scripts are not loaded. The API client sends the URL, headers, body and selected files directly to the endpoint only when you select Send or its shortcut. Speed tests exchange generated test data with Cloudflare when you start a measurement. These destinations receive your IP address. We do not proxy these connections or send inputs or measurement results to analytics. Conversions are not saved automatically. Unsaved API inputs, responses, history and environments stay only in this page. Only API requests explicitly selected with Save in this browser are stored. Auth fields, secret variables, known auth headers and files are excluded; review URLs, bodies and custom headers for other secrets first. Collection exports include URLs and bodies, so review them before sharing.
When analytics is enabled, we use Google Analytics 4 to measure pages, tool names and use counts, actions such as copying or saving an image, speed test starts, completion, cancellation and errors, product link clicks, and monitoring guide and service clicks using fixed IDs. Google uses cookies and collects device and browser information. Google signals for advertising and ad personalization are disabled.
Disabling analytics stores only that preference in this browser. Analytics settings never contain your inputs.Google's privacy policy