Aa

大文字小文字変換

大文字、小文字、先頭大文字、キャメルケース — ワンクリック変換

camelCase vs snake_case — Which Naming Convention Fits Your Stack?

camelCase for JavaScript/Java (variables, functions), snake_case for Python/Ruby/DB columns, PascalCase for classes and React components. Instantly convert between 10+ styles.

Text Case Conversion Rules

camelCase: first word lowercase, subsequent words capitalized (myVariableName). PascalCase: every word capitalized (MyClassName). snake_case: all lowercase with underscores (my_variable). kebab-case: all lowercase with hyphens (my-variable).

よくある質問

What's the difference between camelCase and PascalCase?

camelCase starts lowercase (variables, functions). PascalCase starts uppercase (classes, interfaces, React components). Both use capitalization to separate words without delimiters.

Which case should I use for constants?

CONSTANT_CASE (UPPER_SNAKE_CASE) like MAX_SIZE, API_BASE_URL is the universal convention for constants — instantly recognizable as immutable values.

How to enforce naming conventions across my team?

Set up ESLint naming-convention rules to auto-check on commit. Use this converter for quick batch conversion of identifiers during refactoring.

関連ツール