Text Case Checker

Detected case—
Uppercase letters—
Lowercase letters—
Words—

How Text Case Checker is calculated: Case is detected from the pattern of capital letters, separators and word shapes: all capitals = UPPERCASE, underscores + lowercase = snake_case, mixed humps = camelCase or PascalCase.

What is a text case checker?

A text case checker looks at a piece of text and tells you which naming case it uses — UPPERCASE, lowercase, Title Case, snake_case, camelCase, PascalCase, or kebab-case — along with a count of uppercase letters, lowercase letters, and words. Type “HelloWorld” and it says PascalCase, with 2 uppercase letters, 8 lowercase letters, and 1 word. Type “HELLO WORLD” and it says UPPERCASE. The default text on this page is “hello_world”, which reads as snake_case with 0 uppercase letters, 10 lowercase letters, and 2 words.

Case is the shape of text. The same words can be written a dozen ways — hello world, Hello World, HELLO WORLD, helloWorld, HelloWorld, hello_world, hello-world — and each shape means something different depending on where it appears. A book title uses Title Case, a Python variable uses snake_case, a JavaScript variable uses camelCase, and a web address uses kebab-case. Getting the shape wrong is a small error that causes real problems: a variable name that does not match breaks code, and a heading in the wrong case looks unprofessional.

This tool reads the shape for you instead of making you guess. It counts the capital and small letters, looks at the separators between words, and names the case that matches. Everything runs in your browser — nothing is uploaded, nothing is stored, and there is no account to create. If the case is wrong and you need to fix it, a case converter rewrites the same text in the case you want.

Case matters beyond code too. Screen readers read ALL-CAPS text letter by letter, which is why shouting in capitals is hard to listen to as well as hard to read. Search engines treat case loosely, but readers do not: a title in the wrong case is the first thing a visitor notices, and the last thing they forgive.

How case detection works: letters, separators, and humps

The detection follows a short chain of checks. First the tool counts the letters: how many are capitals, how many are small. If every letter is a capital, the text is UPPERCASE. If every letter is small, the separators decide — underscores mean snake_case, hyphens mean kebab-case, and spaces or nothing at all mean plain lowercase. The formula is: case = the pattern of capital letters plus the separator between words.

Mixed text needs closer reading. If every word starts with a capital and the rest of the letters are small, the text is Title Case — “Hello World”. If there are no separators at all and the humps of capital letters sit in the middle of the word, the first letter decides: a capital first letter means PascalCase, as in “HelloWorld”, and a small first letter means camelCase, as in “helloWorld”.

When no single pattern fits, the tool says Mixed. That is an honest answer, not a failure — real text is often mixed, like a sentence that starts with a capital and contains a camelCase variable name. The letter counts still tell you the story: 2 uppercase letters and 8 lowercase letters in “HelloWorld” is exactly what PascalCase looks like, and a word counter beside it tells you how many words the text holds.

The seven cases this checker recognises

UPPERCASE is every letter a capital: “HELLO WORLD”. It is used for acronyms, warnings, and headings that need to shout, and it is the easiest case to spot — the uppercase count equals the letter count. Lowercase is the opposite: “Hello world”, every letter small, used for most ordinary writing and for Unix file names.

Title Case capitalises every word: “Hello World”. It is the case of book titles, headlines, and headings, and it is the case people get wrong most often, because small words like “and” and “of” are usually left small in real titles. Snake_case joins words with underscores and keeps every letter small: “Hello_world”. It is the standard for Python variables and database columns, because it reads clearly and never breaks on spaces.

CamelCase starts small and humps in the middle: “helloWorld”. It is the standard for JavaScript and Java variables. PascalCase is the same shape with a capital first letter: “HelloWorld”. It is the standard for class names. Kebab-case joins words with hyphens: “Hello-world”. It is the standard for web addresses and CSS classes, because hyphens are the only separator that works in a URL.

Each case has a home, and using the wrong one in the wrong home is the mistake this tool exists to catch. A Python variable written in camelCase will not break anything, but it will look wrong to every Python programmer who reads it — and in a team, looking wrong is the first step to being misread.

A worked example: “Hello_world” and its neighbours

Take the default text, “Hello_world”. It has 11 characters, 10 of them letters, all 10 lowercase, with an underscore in the middle and 2 words. Every letter is small and the separator is an underscore, so the checker says snake_case: 0 uppercase letters, 10 lowercase letters, 2 words.

Change one thing at a time and watch the answer move. “HELLO WORLD” has 10 uppercase letters, 0 lowercase letters, and 2 words — UPPERCASE. “Hello World” has 2 uppercase letters, 8 lowercase letters, and 2 words — Title Case, because each word starts with a capital. “HelloWorld” has 2 uppercase letters, 8 lowercase letters, and 1 word — PascalCase, because there are no separators and the first letter is a capital.

“helloWorld” has 1 uppercase letter, 9 lowercase letters, and 1 word — camelCase. “Hello-world” has 0 uppercase letters, 10 lowercase letters, and 2 words — kebab-case, because the separator is a hyphen. “Hello world”, all small with a space, has 0 uppercase letters, 10 lowercase letters, and 2 words — plain lowercase. Same letters, six different answers, and the only thing that changed was the shape.

The counts are the proof. Two texts can share a name — “HelloWorld” and “Hello World” both have 2 uppercase and 8 lowercase letters — but the word count separates them: 1 word against 2. When the checker gives you an answer you did not expect, read the three counts first; they show exactly which check fired.

Who uses a text case checker, and why

Programmers are the biggest users. Code is full of names — variables, functions, classes, files — and every language has a convention for which case each kind of name uses. A Python programmer pastes a name here to confirm it is snake_case; a JavaScript programmer checks a name is camelCase before committing it. A name in the wrong case will not always break a build, but it will always break the convention, and conventions are what make code readable by the next person.

Writers and editors are the second group. Headlines, book titles, and headings all have case rules, and a checker settles arguments about whether a title is Title Case or just capitalised at random. A writer who pastes a heading here learns in a second whether every word starts with a capital or whether a small word slipped through.

Students are the third group: naming conventions are taught in first programming courses, and this tool is the answer key for the exercise “identify the case of each of these names”. Data cleaners are the fourth group — people who receive spreadsheets where one column is snake_case, the next is Title Case, and the third is shouting in capitals, and who need to know what they are dealing with before they standardise it.

Text case checker vs a case converter

A checker and a converter are two halves of one job. The checker tells you what the case is; the converter changes it. You check first, then convert — and a case converter is the tool that does the second half, rewriting your text in UPPERCASE, lowercase, Title Case, snake_case, camelCase, PascalCase, or kebab-case on demand.

The checker earns its place because converting without checking is guesswork. If you paste “Hello_world” into a converter and ask for camelCase, you get “helloWorld” — but if the text was already camelCase, the same request changes nothing, and you cannot tell whether the tool worked or the text was already right. Checking first gives you a before-and-after: snake_case in, camelCase out, confirmed by the checker on both ends.

A character counter is the other natural partner: it tells you how long the text is while the checker tells you what shape it is, and together they answer the two questions every form field asks — how long, and in what form. A sentence counter adds the third question, how many sentences the text holds, which is what an editor checks next.

Common mistakes when judging text case

The most common mistake is confusing PascalCase with Title Case. “HelloWorld” is PascalCase and “Hello World” is Title Case — the same capital letters, but one has a space and the other does not. The space is the whole difference, and it is easy to miss when you are reading quickly. The word count catches it: Title Case has 2 words here, PascalCase has 1.

Second: calling any capitalised word Title Case. A single word like “Hello” is not Title Case, it is just a capitalised word — Title Case needs at least two words, each starting with a capital. A lone capitalised word with no separators and no second hump is Mixed by this checker, and that is the honest answer.

Third: assuming snake_case and kebab-case are the same thing. They are not — the underscore and the hyphen are different characters, and they belong to different worlds. Snake_case is for code; kebab-case is for URLs. A file named “Hello-world.py” will work, but it will look wrong to every Python programmer who sees it.

Fourth: judging case by eye on long text. A 500-word passage can hide a single camelCase variable or a single shouting acronym, and the eye slides straight past it. The counts do not slide past anything: if the uppercase count is 3 higher than the number of sentence starts, something in the middle is capitalised, and the checker found it.

How to use this text case checker

Using this text case checker is simple. Type or paste your text into the box — “Hello_world” is already there as the default. The detected case appears instantly, with the uppercase count, the lowercase count, and the word count beside it. There is nothing to submit and nothing to wait for.

To check a name from your code, paste just the name — a single word like “HelloWorld” gives the cleanest answer, because sentences bring sentence capitals that confuse the pattern. To check a heading, paste the whole heading, and read the word count as well as the case name: Title Case with the wrong word count usually means a word is missing its capital.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device, and the page works offline once it has loaded. Try it with something real before you need it: paste a variable name from your own code, read its case, then paste a heading from your own writing and read that. Once you have done it twice, naming a case stops feeling like a quiz and starts feeling like reading.

Frequently Asked Questions

hello_world is snake_case: all letters are lowercase and the words are joined with underscores. This checker reports snake_case with 0 uppercase letters, 10 lowercase letters, and 2 words. Snake_case is the standard for Python variables and database columns.

Both join words without separators and capitalise the start of each word after the first. The difference is the first letter: camelCase starts lowercase (helloWorld), PascalCase starts uppercase (HelloWorld). camelCase is used for variables in JavaScript and Java; PascalCase is used for class names.

No. Title Case needs at least two words, each starting with a capital letter, like “Hello World”. A single capitalised word such as “Hello” is just a capitalised word, and this checker reports it as Mixed.

No, this tool only detects the case. To change text into a different case, use a case converter, which rewrites the same text in UPPERCASE, lowercase, Title Case, snake_case, camelCase, PascalCase, or kebab-case.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.