Case Converter
Convert text to upper, lower, camelCase, PascalCase, snake_case, kebab-case and more.
TextThe conventions and where they are used
Every language and format has its own convention for compound names, and
switching between them by hand is tedious and error-prone. The common ones are
camelCase for variables in JavaScript and Java,
PascalCase for types in C#, snake_case in Python and
database columns, CONSTANT_CASE for constants and environment
variables, and kebab-case in URLs and CSS class names.
How words are detected
The tricky part is not applying capitals, it is working out where one word
ends and the next begins. This tool recognises separators — spaces, hyphens,
underscores — as well as lower-to-upper transitions and runs of capitals:
XMLHttpRequest is read as "XML", "Http", "Request", not as a single
word.
Title case and sentence case
These are two different things and are often confused. Title case capitalises every word; sentence case capitalises only after a full stop. Which one is correct depends on the language and on your style guide — English headlines commonly use title case, many other languages do not.
Frequently asked questions
It is read as three words: XML, Http and Request. Runs of capitals followed by a capitalised word are split correctly, so in snake_case it becomes xml_http_request.
Yes. Accented letters are kept as they are when changing case. They are also kept in the programming conventions, though it is usually best to avoid them in identifiers.