Which case to use where
- camelCase — JavaScript variables, TypeScript, Java methods/fields.
userName. - PascalCase — classes, types, React components.
UserProfile. - snake_case — Python variables/functions, Ruby, SQL column names.
user_name. - CONSTANT_CASE (SCREAMING_SNAKE) — constants in C, C++, JavaScript.
MAX_RETRIES. - kebab-case — URLs, CSS class names, CLI flags, HTML attributes.
user-name. - UPPER-KEBAB — HTTP headers.
CONTENT-TYPE. - dot.case — package names in Java, config keys.
user.profile.name. - path/case — URL paths, filesystem.
user/profile/name. - Title Case — headings, book titles, article titles.
- sentence case — regular prose with just the first word capitalized.
Smart tokenization
This tool's tokenizer recognizes all common conventions as input. Paste fooBarBaz,
FooBarBaz, foo_bar_baz, foo-bar-baz, or foo.bar.baz —
all produce the same three tokens. Consecutive capitals are handled correctly: XMLParser
becomes xml and parser, not x and mlparser.
Bulk mode
Paste one item per line, turn on bulk mode, and every line converts independently. Useful for migrating variable names, converting CSV column headers, or mass-renaming.
Common case-conversion bugs
- Word boundaries — naive converters split "HTMLParser" into "h", "t", "m", "l", "parser" or join it as "Htmlparser". This tool uses the capital-followed-by-capital-then-lowercase heuristic to keep acronyms intact.
- Trailing separators —
"foo__bar"should tokenize tofoo,bar, not include an empty token. - Numbers —
"version2"is typically one token (version2)."v2API"isv2+api.
FAQ
Does this preserve Unicode characters?
Yes — ASCII-like tokenization with Unicode-preserving case transforms. Non-Latin scripts pass through.
Why does "alternating case" look slightly different than expected?
It alternates position-by-position in the final string (including spaces). If you want whole-word alternation, that's a different pattern — open an issue.
Related tools
- JSON Formatter — Format, validate, and beautify JSON online. 100% client-side — your data never leaves your browser.
- Regex Tester — Test regular expressions with live match highlighting and explanation.
- Word Counter — Count words, characters, sentences, paragraphs, and lines. Reading time estimate, char-limit indicators for X, LinkedIn, meta titles, and more.
- Lorem Ipsum Generator — Generate placeholder text — words, sentences, or paragraphs. Classic lorem ipsum plus alternatives (hipster, cupcake, pirate). HTML-wrapped output option.
Pillar
Part of Dev Productivity.
Written by Mian Ali Khalid. Last updated 2026-04-25.