Case Converter
Case Converter rewrites text in thirteen different cases — sentence case, Title Case, UPPERCASE, camelCase, snake_case, kebab-case and more. Prose styles keep your punctuation and line breaks intact, while the programmer formats rebuild each word from scratch to produce a valid identifier.
Runs entirely in your browser — nothing you enter is uploaded.
TextTitle Case leaves short words like of and the lowercase unless they start or end the line. Use Capitalize Every Word if you want no exceptions.
About text cases
The prose conversions work on your text in place, so full stops, commas and
paragraph breaks survive. Title Case follows the convention most style guides
share: short words such as of, the and
and stay lowercase unless they open or close the line. If you
want every word capitalised without exception — which is a different thing,
and often what a heading actually calls for — use Capitalize Every Word.
The programmer formats take the opposite approach. They split the text into
words at spaces, punctuation and at capital letters, then rebuild it
with the separator that format uses. Splitting on capitals is what lets
myXMLParser be understood as three words and re-cased cleanly,
and it is why punctuation does not survive a conversion to snake_case: the
result has to be a valid identifier.
Common questions
- What is the difference between Title Case and Capitalize Every Word?
- Title Case follows publishing convention: short joining words such as of, the, and, or, in and to stay lowercase unless they are the first or last word. Capitalize Every Word does exactly what it says with no exceptions. Title Case is correct for article headlines; Capitalize Every Word is often what people actually want for a short heading or a button label.
- Why does my punctuation disappear in snake_case?
- Because the programmer formats rebuild the text as an identifier rather than editing it in place. The text is split into words, and anything that is not a letter or a digit is treated as a separator rather than content, so it cannot survive. The prose cases — sentence, title, upper, lower — leave punctuation untouched.
- How does it handle camelCase input like myXMLParser?
- Words are split at capital letters as well as at spaces and punctuation, and a run of capitals followed by a capitalised word is treated as an acronym boundary. So myXMLParser is read as my, XML and Parser, and converts to my_xml_parser or my-xml-parser correctly rather than producing one unreadable run.
- Which case should I use in code?
- Follow the language you are writing rather than a personal preference: camelCase for JavaScript and Java variables, PascalCase for classes and components, snake_case for Python and for SQL columns, CONSTANT_CASE for fixed values, and kebab-case for URLs, CSS classes and file names. Consistency inside a project matters more than which convention it picked.