Reverse Lines
Flip a list upside down so the last line becomes the first.
Measure text length in characters, words, bytes and lines at once.
0
Visible characters
0
UTF-8 bytes
0
UTF-16 units
The Text Length Counter measures a string every way a computer might: visible characters, Unicode code points, UTF-16 units as JavaScript counts them, UTF-8 bytes, words and lines. When those numbers disagree — and with emoji or accented text they always do — the gap is what breaks a database insert or an API limit.
"How long is this?" has more than one answer, and the one you need depends on what is doing the measuring. A VARCHAR(255) column counts bytes in some databases and characters in others. A JavaScript string length counts UTF-16 code units. A person counts words. This tool reports all of them side by side so you can stop guessing.
You get the character count as a reader would count it, the UTF-16 length that String.length returns in JavaScript, the number of Unicode code points, the UTF-8 byte size, plus words and lines. When those numbers disagree — and with emoji or accented text they will — the gap is exactly the thing that breaks a database insert or an API payload limit.
The figure storage systems and payload limits actually use, where an accent costs two bytes and an emoji four.
UTF-16 code units, which is what String.length returns — and why an emoji counts as two in a browser.
Grapheme clusters, so a flag or a skin-toned emoji counts as the single character a reader sees.
Enter a cap and the tool says whether the text fits under each measurement, not just the one you thought of.
Where two figures disagree, the reason is named, so you know which limit you are actually up against.
A field value, a URL, a product title or a whole document.
Characters, code points, UTF-16 units, UTF-8 bytes, words and lines are reported together.
Databases usually mean bytes, JavaScript means UTF-16 units, and people mean visible characters.
Enter your limit and the tool tells you whether the text fits under each measurement.
UTF-8 uses one byte for plain ASCII but two, three or four for anything else. An accented letter takes two bytes, most CJK characters take three, and emoji take four, so any non-English text is longer in bytes than in characters.
MySQL and PostgreSQL count characters for VARCHAR, but the underlying storage and any index still has a byte limit, so a column of 255 four-byte characters can fail on an index even though the character count fits. Check both figures.
String.length counts UTF-16 code units, so any character outside the Basic Multilingual Plane — most emoji — counts as two. The UTF-16 figure here is what JavaScript will report.
A code point is one Unicode value. A visible character can be several: a flag emoji is two code points and an emoji with a skin tone is two or more. The character figure counts what a reader sees.
What people who use the Text Length Counter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Text Length Counter. It takes half a minute and no account.
Write the first reviewFlip a list upside down so the last line becomes the first.
Count every punctuation mark and see how a text is paced.
Make a second, third or fifth copy of a block of text instantly.
Corrupt text with stacked combining marks.
Find dates in any format and normalise them to one.
Score text from 0 to 100 on the classic readability scale.
Cycle text through every case format from one box.
Push every line to the right edge of a set width.