TurantToolsdev</> All tools

camelCase, snake_case, kebab-case: Who Uses Which

One name in five styles, where each is the norm, and where they meet in real projects.

By the TurantTools Dev team · Updated October 27, 2026 · 2 min read

Every ecosystem has a naming habit, and mixing them makes code harder to read and search. Here's "user account id" in each style and where it's used.

WhereStyleResult
JavaScript / TypeScript variablescameluserAccountId
Classes and React componentspascalUserAccountId
Python, Ruby, SQL columnssnakeuser_account_id
CSS classes, URLs, file nameskebabuser-account-id
Environment variables, constantsconstantUSER_ACCOUNT_ID

Where they meet

  • APIs between a Python back end and a JS front end often convert snake_case JSON to camelCase at the boundary; pick one place to do it.
  • Acronyms: userId or userID? Choose one rule and let a linter enforce it.
  • Database columns in snake_case avoid quoting in PostgreSQL, which folds unquoted names to lowercase.
Case Converter (camelCase, snake_case, Title Case)Convert text between cases.

More articles