Developer tools

Case Converter

Case Converter

Convert text to camelCase, snake_case, kebab-case, Title Case and 10 more at once.

About this tool

About Case Converter

Type or paste text once and get it in fourteen cases side by side: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Train-Case, Title Case, Sentence case, lowercase, UPPERCASE, aLtErNaTiNg and iNVERSE. The word splitter understands every naming style, so XMLHttpRequest becomes xml_http_request, getHTTPResponseCode becomes get-http-response-code and a mix of underscores, hyphens and spaces is handled in one pass. Accented and non-Latin letters stay intact. Title Case follows editorial rules rather than capitalising everything: articles, short conjunctions and short prepositions stay lowercase unless they open or close the title or follow a colon, and acronyms, brand names like iPhone and URLs keep their casing. With Each line separately on, a pasted list of column names or variables converts line by line, ready for a schema, a migration or an enum. Click any case to see it in full, then copy or download it. Conversion happens in your browser as you type.

Built and maintained by Abhi JainUpdated

How to Convert Text Case

  1. 1

    Enter text

    Type or paste text into the Text box, open a text file, or click Sample.

  2. 2

    Pick a case

    Every case updates live in the All cases list. Click one to show its full result under the text.

  3. 3

    Choose line handling

    Keep Each line separately on to convert a list line by line, or turn it off to join everything into one identifier.

  4. 4

    Copy the result

    Copy a case from its row, or use Copy or Download on the full result.

Case Converter: questions and answers

What is the difference between camelCase and PascalCase?

Both join words without spaces and capitalise each word, but camelCase starts with a lowercase letter (userName) and PascalCase starts with a capital (UserName). JavaScript and Java use camelCase for variables and PascalCase for classes and React components.

When should I use snake_case or kebab-case?

snake_case is the convention for Python variables and functions, Ruby, and most SQL column names. kebab-case is used for URLs, CSS class names, HTML attributes and command-line flags, where underscores are awkward or invisible when underlined.

How does the tool split words in XMLHttpRequest?

It breaks between a lowercase letter or digit and a capital (userName → user, Name) and before the last capital of an acronym followed by lowercase letters (XMLHttp → XML, Http), plus at every space, underscore, hyphen and punctuation mark.

Which words stay lowercase in Title Case?

Articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet) and short prepositions (as, at, by, in, of, off, on, per, to, up, via) stay lowercase unless they are the first or last word or follow a colon. Words of four letters or more are capitalised.

Does it work with accented and non-English letters?

Yes. Words are split using Unicode letter classes, so café, straße and Cyrillic or Greek words convert correctly, and uppercasing follows Unicode rules (straße becomes STRASSE).