Case Converter & Counter

Convert text between UPPERCASE, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and more, and count characters, words and lines.

Loading tool…

Case Converter & CounterSwitch text between 14 cases — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, aLtErNaTiNg and iNVERSE — while live counters track characters, words, lines and bytes. Optionally skip minor words in Title Case and keep acronyms like API or URL uppercase. Everything is processed locally in your browser.

What is Case Converter & Counter?

Case Converter & Counter is a free online text case converter that switches any text between 14 formats with one click: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE (SCREAMING_SNAKE), kebab-case, Train-Case, dot.case, path/case, plus playful aLtErNaTiNg and iNVERSE (swap) case. Developers use the identifier styles for variable, constant, class and namespace names, while writers and social media managers fix headlines and normalize copied text. You can make Title Case skip minor words such as a, an, the and of, and keep custom acronyms like API, URL or ID uppercase. A live counter shows characters, characters without spaces, words, lines and bytes as you type, so it doubles as a quick word and character counter.

How to use Case Converter & Counter

  1. Type or paste your text into the Input box.
  2. Pick a conversion mode from the segmented buttons: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, aLtErNaTiNg or iNVERSE.
  3. Open Settings (gear icon) to skip minor words in Title Case or list acronyms (e.g. API, URL) to keep uppercase.
  4. Read the converted result instantly in the read-only Output box and copy it with the Copy button.
  5. Check the live stats row for characters, chars without spaces, words, lines and bytes.
  6. Click Clear to empty the Input and start over.

Examples

PascalCase for a class name

Input

hello world

Output

HelloWorld

CONSTANT_CASE for a config key

Input

max retry count

Output

MAX_RETRY_COUNT

dot.case for a namespace

Input

com Example App

Output

com.example.app

Frequently asked questions

Which case formats does it support?
Fourteen: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE (SCREAMING_SNAKE), kebab-case, Train-Case, dot.case, path/case, aLtErNaTiNg and iNVERSE (swap) case. UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg and iNVERSE keep your original spacing and punctuation, while the identifier styles split the text into words and rejoin them with the right separator.
How do camelCase, PascalCase, snake_case and the other identifier styles split words?
The tool extracts alphanumeric words and also breaks on camelCase boundaries (the gap in 'helloWorld'), then rejoins them: camelCase lowercases the first word and capitalizes the rest with no separator, PascalCase capitalizes every word, snake_case and kebab-case join lowercase words with '_' or '-', CONSTANT_CASE joins uppercase words with '_', Train-Case joins capitalized words with '-', and dot.case and path/case join lowercase words with '.' or '/'. Punctuation and existing separators are dropped in these modes.
Can Title Case skip minor words and keep acronyms uppercase?
Yes. In Settings, turn on 'Skip minor words' so words like a, an, the, of and and stay lowercase in Title Case (the first and last word are always capitalized). You can also list acronyms such as API, URL or ID to keep them uppercase in the cased modes: Title Case, Sentence case, camelCase, PascalCase and Train-Case.
What do the counters measure?
They update live as you type, showing total characters, characters excluding whitespace, word count (whitespace-separated), line count and byte size (UTF-8 encoded).
Is my text uploaded anywhere?
No. Everything runs 100% client-side in your browser. Your text is never uploaded to a server, so you can safely convert private or sensitive content.

Related tools