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.
Case Converter & Counter — Switch 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
- Type or paste your text into the Input box.
- 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.
- Open Settings (gear icon) to skip minor words in Title Case or list acronyms (e.g. API, URL) to keep uppercase.
- Read the converted result instantly in the read-only Output box and copy it with the Copy button.
- Check the live stats row for characters, chars without spaces, words, lines and bytes.
- 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
Base32 / Base58 Encode / Decode
Encode text to Base32 (RFC 4648) or Base58 (the Bitcoin alphabet) and decode either one back to text, fully UTF-8 safe and entirely in your browser.
Base64 Encode / Decode
Encode or decode Base64 (UTF-8 safe) with a URL-safe alphabet, optional padding, 64/76 line wrapping, live byte and character counts, and a hex/binary byte view.
Code Formatter & Minifier
Beautify or minify HTML, CSS and JavaScript instantly in your browser, with 2-space, 4-space or tab indentation and Terser-powered JavaScript compression.
Color Converter
Convert colors between HEX, RGB and HSL with a live preview.