InTab

Case Converter

camelCase, snake_case, kebab-case, PascalCase and more.

Converters: Turn one format into another. It runs in your browser, so nothing you enter is uploaded.

What it does

The Case Converter rewrites text in every common naming style at once: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, Title Case, Sentence case, upper, lower, inverse and alternating case. It is handy for variable names, database columns, URLs, CSS classes and headings.

How to use it

  1. Type or paste text into Input. Each line is converted separately, so you can convert a whole list at once.
  2. Copy the style you need from Results.

Example

Input: user account ID

Style Result
camelCase userAccountId
PascalCase UserAccountId
snake_case user_account_id
CONSTANT_CASE USER_ACCOUNT_ID
kebab-case user-account-id
Title Case User Account Id

Good to know

  • Word boundaries are found from spaces, punctuation and changes of case, so userAccountID, user-account-id and User Account ID all give the same results.
  • Acronyms become normal words (ID → Id) in camelCase and PascalCase, following most style guides.
  • Title Case capitalises every word. Publishing styles that keep short words such as "and" or "of" in lower case need a final manual check.

FAQ

Which case should I use for…? Common conventions: camelCase for JavaScript and Java variables, PascalCase for classes and C# members, snake_case for Python and database columns, kebab-case for URLs and CSS classes, CONSTANT_CASE for constants and environment variables.

Does it work with accented letters? Yes, letters from any alphabet are kept.

Guides

More Converters tools

  • JSON to Code: Generate TypeScript, C#, Java, Python, Go, Kotlin, Swift, Rust, PHP, Dart types from JSON.
  • XML to Code: Generate C# (XmlSerializer), Java (JAXB), Go and TypeScript classes that read your XML.
  • Data Format Converter: Convert between JSON, YAML, XML, CSV and TOML in any direction.
  • JSON to YAML Converter: Turn JSON into clean YAML (and back) for configs, Kubernetes and CI files.
  • XML to JSON Converter: Convert XML documents to JSON, keeping attributes, and back again.
  • Number Base Converter: Convert numbers between binary, octal, decimal and hexadecimal.
  • Color Converter: Convert colors between HEX, RGB, HSL, HSV and CMYK.