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.
How to use it
Paste the text — a sentence, a list of names, a term taken from the domain — and pick the target convention: the conversion happens immediately, and the result is ready to copy. Nothing is sent anywhere: it all happens in the browser.
When it really matters
The moment a database column has to become a class property, or a title has to become a URL slug, or configuration keys have to follow the convention of the service reading them. It is the friction the concept itself meets every time it travels between languages, and doing it by hand is the most reliable way to get one character wrong at character thirty.
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.
With the SmartTools Case Converter: paste the text and pick the target convention among upper, lower, camelCase, PascalCase, snake_case and kebab-case. Word detection handles acronyms and case transitions too, and it is free with no registration.