Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE in one click.

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

StyleExampleTypical use
camelCaseuserIdJavaScript, Java and Swift variables; JSON keys in many APIs
PascalCaseUserProfileClass and type names in most languages; React components; C# methods
snake_casecreated_atPython, Ruby, Rust variables; SQL column names
kebab-casemain-headerURLs, CSS class names, file names, CLI flags
CONSTANT_CASEMAX_RETRIESConstants and environment variables
dot.caseapp.cache.ttlConfig 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.