Text Case Converter
Converts text or variable names into nine case styles at once, from camelCase, PascalCase, snake_case and kebab-case to Title Case, UPPERCASE and Sentence case.
Loading…
How to use
- Type or paste text, a variable name or several lines into the box.
- All nine styles appear at once in the table below, from camelCase to Sentence case. Each line is converted on its own and line breaks are kept; empty lines at the very start and end are dropped.
- Any naming style works as input: words are split at every character that is not a letter or digit (spaces, _, -, ., brackets, quotes and so on) and where a lowercase letter or digit is followed by a capital, so order_item_count, orderItemCount and order-item-count give the same results.
- Press Copy next to the style you need.
Frequently asked questions
- Is my text sent to a server?
- No. Conversion happens in your browser.
- How are acronyms handled?
- A run of capitals is treated as one word, so XMLHttpRequest becomes xml_http_request. In camelCase, PascalCase and Title Case the acronym loses its capitals: xmlHttpRequest, XmlHttpRequest and Xml Http Request.
- How are numbers handled?
- A digit followed by a capital starts a new word (v2Api → v2_api), but a letter followed by a digit stays in the same word (item2 → item2). If a line starts with a number, camelCase keeps the first word after it lowercase too (2 factor auth → 2factorAuth).
- What exactly do Sentence case and Title Case do?
- Sentence case lowercases the whole line and capitalizes only its first letter, so later sentences and proper nouns end up lowercase. Title Case capitalizes every word, including short ones such as “a” or “of”, and puts a space where _ or - joins letters and at camelCase boundaries (order_item_count → Order Item Count); other spacing and punctuation stay as they are.
- What happens to punctuation and non-Latin text?
- Scripts without case, such as Korean, Japanese or Chinese, stay as they are and count as words (camelCase only removes the spaces). In camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE and kebab-case, punctuation and symbols are word boundaries and do not appear in the result (an apostrophe inside a word is removed: don't stop → dont_stop), leading indentation is dropped, and a line of only symbols becomes an empty line. Title Case, UPPERCASE, lowercase and Sentence case keep the indentation, spacing and punctuation of each line.