Toolkit Lab

Guides / Text case

Text Case Styles Explained

Capitalization changes how a title or heading reads. In code, the case style also signals what a name means. Here is when to use each common style.

Writing styles

Code naming styles

Watch out for the small details

Converting between styles can be tricky with acronyms and numbers. "XMLHttpRequest" becomes "xml_http_request" in snake_case, and "version 2 beta" becomes "version_2_beta". Always scan the result for words that split in unexpected places.

Try it yourself

Paste text into the Case Converter and click any style to see the result. You can then copy it or use it as the input for another conversion.