AaCase Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
Seven cases, and the choice is usually not yours to make.
In code the convention belongs to the language: camelCase for JavaScript variables, snake_case for Python and database columns, kebab-case for CSS classes, URLs and filenames. Consistency inside a project matters considerably more than which one you would have picked.
In writing there is more room. Sentence case is now standard for headings in most style guides and reads more naturally. Title case persists in American publications and in book titles.
Two things it will get wrong
Acronyms. Lowercase and sentence case treat NASA as ordinary text and return nasa. No simple rule can distinguish an acronym from a shouted word, so restore those by hand afterwards.
Title case here capitalises every word, which is the simple rule rather than the editorial one. Proper title case leaves short prepositions and articles lowercase unless they open the phrase — check headlines by eye.
Sentence case capitalises after each full stop, so an abbreviation mid-sentence produces an unexpected capital on the word following it.
For URLs
kebab-case, lowercase, always. Underscores are hard to see under a link where the underline sits, and mixed case causes real problems because some servers treat paths as case-sensitive and others do not — which produces a URL that works on staging and 404s in production.
Naming variables
Converting a sentence gives you every word, and that is rarely what you want. theTotalNumberOfActiveUsers is worse than activeUserCount. Convert, then shorten by hand — naming is an editing job, not a formatting one.
This tool is provided free of charge for general information and convenience only. It runs in your browser and we do not store the data you enter. We make no guarantee as to the accuracy, completeness, or suitability of any result, and accept no liability for any loss, damage, or decision arising from its use — use it at your own risk. See our Terms & Conditions.