How to use the case converter
Paste your text and click a button. The first row changes letter case for normal writing. The second row is for code: it splits each line into words and joins them using the chosen convention. Each line is converted separately, so you can paste a whole column of database fields or CSV headers and convert them all at once.
The word splitter understands the formats you're likely to paste. getHTTPResponseCode, get_http_response_code and get-http-response-code are all recognised as the four words "get HTTP response code", so converting between any two naming styles just works.
Which convention goes where
| Style | Example | Typical use |
|---|---|---|
| camelCase | userId | JavaScript, Java and Swift variables; JSON keys in many APIs |
| PascalCase | UserProfile | Class and type names in most languages; React components; C# methods |
| snake_case | created_at | Python, Ruby, Rust variables; SQL column names |
| kebab-case | main-header | URLs, CSS class names, file names, CLI flags |
| CONSTANT_CASE | MAX_RETRIES | Constants and environment variables |
| dot.case | app.cache.ttl | Config keys (Spring, i18n files) |
Title Case and Sentence case
Title Case capitalises the first letter of every word. Style guides such as AP and Chicago keep short words like "and", "of" and "the" lowercase in the middle of a title; this tool doesn't, because the rules differ between guides. Fix those few words by hand afterwards.
Sentence case lowercases everything and then capitalises the first letter of each sentence. It's handy for cleaning up text that was typed with caps lock on. Proper nouns and acronyms will need a quick manual pass, since there's no reliable way to know that "nasa" should be "NASA".
Acronyms in code
Teams disagree on whether it should be parseHTML or parseHtml. Google's Java and JavaScript style guides, and Microsoft's .NET guidelines for longer acronyms, prefer treating acronyms as normal words (parseHtml, XmlHttpRequest), because it keeps word boundaries obvious. This converter follows that approach when producing camelCase and PascalCase.
Frequently asked questions
Does it work with accented and non-English letters?
Yes. The word splitting uses Unicode letter classes, so names like "Größe" or "café" convert correctly.
Can I convert many lines at once?
Yes. Each line is converted independently, so a list of field names stays a list.
Why are small words capitalised in Title Case?
Different style guides disagree on which small words to keep lowercase, so the tool capitalises every word and leaves the final judgement to you.