DevBolt
Processed in your browser. Your data never leaves your device.

How do I convert text between camelCase, snake_case, and other cases?

Paste your text and instantly see it converted to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more. You can copy any result with one click. All processing happens in your browser.

Convert to camelCase
Input
user_first_name
Output
userFirstName
← Back to tools

Text Case Converter

Convert text between camelCase, snake_case, kebab-case, and more. Results update as you type.

About Case Conversion

  • Automatically detects word boundaries from camelCase, separators (hyphens, underscores, dots, slashes), and whitespace.
  • Supports 11 case styles commonly used in programming, CSS, file paths, and documentation.
  • Everything runs in your browser — no data is sent over the network.

Tips & Best Practices

Pro Tip

Naming conventions vary by language and context

camelCase: JavaScript variables, Java methods. PascalCase: TypeScript types, React components, C# classes. snake_case: Python, Ruby, Rust, database columns. SCREAMING_SNAKE_CASE: constants in most languages. kebab-case: CSS classes, HTML attributes, URL slugs. Using the wrong convention breaks linter rules and team consistency.

Common Pitfall

Acronyms in PascalCase are inconsistent across ecosystems

Should it be XMLParser or XmlParser? HTTPSConnection or HttpsConnection? Go uses XMLParser (all caps for acronyms). C#/.NET uses XmlParser (only first letter capitalized). JavaScript/TypeScript has no consensus. Pick one convention per project and enforce it with a linter rule.

Real-World Example

Database column names: snake_case is safest

SQL is case-insensitive by default, but PostgreSQL lowercases unquoted identifiers. A column named userId becomes userid unless quoted. snake_case (user_id) avoids this trap entirely and is the standard convention in PostgreSQL, MySQL, and SQLite. ORMs like Prisma and Drizzle handle the mapping to camelCase in your application code.

Pro Tip

Use your ORM's naming strategy instead of manual conversion

Prisma's @@map and @map, TypeORM's namingStrategy, and Sequelize's underscored option automatically convert between camelCase code and snake_case database columns. This eliminates manual case conversion bugs and keeps your codebase consistent.

Frequently Asked Questions

What are the common case conventions in programming?
The main conventions are: camelCase (first word lowercase, subsequent words capitalized — used in JavaScript, Java, TypeScript variables), PascalCase (all words capitalized — used for classes, React components, C# methods), snake_case (words separated by underscores, all lowercase — used in Python, Ruby, Rust, database columns), kebab-case (words separated by hyphens — used in CSS, HTML attributes, URLs), SCREAMING_SNAKE_CASE (uppercase snake_case — used for constants in most languages), and Title Case (first letter of each word capitalized — used for headings). DevBolt converts between all of these instantly.
When should I use camelCase vs snake_case?
Follow the convention of your language and ecosystem. JavaScript, TypeScript, and Java use camelCase for variables and functions, PascalCase for classes. Python, Ruby, and Rust use snake_case for variables and functions, PascalCase for classes. Go uses camelCase for unexported and PascalCase for exported identifiers. Database columns typically use snake_case. REST API JSON responses vary — JavaScript APIs often use camelCase while Python APIs use snake_case. Consistency within a codebase matters more than which convention you choose. Many teams configure linters to enforce a single style.
How do I convert variable names between cases in bulk?
Paste multiple variable names (one per line or separated by spaces) into DevBolt's Case Converter and select the target case. The tool handles conversion from any input case to any output case automatically, detecting word boundaries from camelCase humps, underscores, hyphens, and spaces. For bulk conversion in code, most IDEs offer find-and-replace with regex, and tools like sed or rename utilities handle file-level conversions. When migrating between conventions (e.g., Python to JavaScript), API serialization libraries like Pydantic or Jackson provide automatic case conversion for JSON fields.

Related Convert Tools