Nadhebe

String Case Converter

RAW TEXT STRING INPUT

CONVERTED CASE OUTPUTS
camelCase:
 
snake_case:
 
kebab-case:
 
PascalCase:
 
CONSTANT_CASE:
 

String Case Conversion Conventions in Programming

Selecting the correct variable and file naming conventions is essential for code readability and style guide compliance across JavaScript, Python, C++, and CSS.

Naming Convention Matrix

  • JavaScript/TypeScript: camelCase variables, PascalCase classes/React components.
  • Python/Rust/SQL: snake_case functions and database column names.
  • CSS/HTML/URLs: kebab-case class selectors and URL slugs.

Related Developer Tools

Generate URL slugs with the Slug Generator, encode Base64 strings with the Base64 Encoder, or format SQL queries with the SQL Formatter.

Frequently Asked Questions

Common questions about this tool.

What is camelCase?

`camelCase` capitalizes the first letter of each word except the first word, with zero spaces or punctuation (e.g. `userFirstName`). Used in JavaScript, TypeScript, and Java.

What is snake_case?

`snake_case` separates words using lowercase letters and underscores (`_`) (e.g. `user_first_name`). Used in Python, Rust, and SQL column naming.

What is kebab-case?

`kebab-case` separates words using lowercase letters and hyphens (`-`) (e.g. `user-first-name`). Used in CSS class names, HTML attributes, and URL slugs.

What is PascalCase?

`PascalCase` capitalizes the first letter of every word (e.g. `UserFirstName`). Used for React component names and TypeScript interfaces.

What is CONSTANT_CASE?

`CONSTANT_CASE` converts all letters to uppercase separated by underscores (e.g. `MAX_RETRY_COUNT`). Used for global environment variables and constants.

Related Free Utilities

View all tools →