Case Converter

camelCase, PascalCase, snake_case, kebab-case and more, all at once.

Every style

Examples

Questions

Why does XML become Xml in camelCase?

Every style here lowercases the rest of an all-caps word, so parseXMLDocument becomes parseXmlDocument. Style guides disagree on this, but one rule keeps the output predictable.

How are digits handled?

A run of digits is its own word. html5Parser splits into html, 5 and Parser, so kebab-case gives html-5-parser.

What counts as a word boundary?

A lowercase letter followed by a capital, a run of digits, or a space, hyphen, underscore or dot. In a run of capitals, the last one before a lowercase letter starts a new word, so XMLParser splits into XML and Parser.

Does it work on non-Latin text?

Scripts without upper and lower case, such as Chinese, Japanese, Korean and Thai, are kept together as one word. Upper and lower case leave them unchanged.