← Back to UltraToolkit | All Posts

Developer Naming Conventions: The Complete Reference for Every Language

The definitive naming convention guide for JavaScript, Python, CSS, SQL, and more β€” with a free case converter tool.

Naming conventions do not affect whether code runs β€” they determine whether code is maintainable by the next developer who reads it, including your future self.

JavaScript and TypeScript

Variables and functions: camelCase. Classes and interfaces: PascalCase. Constants: SCREAMING_SNAKE_CASE. Private members: underscore prefix. React components: PascalCase. Custom hooks: use prefix camelCase.

Python

Variables and functions: snake_case. Classes: PascalCase. Constants: UPPER_SNAKE_CASE. Private: single underscore. Module names: short lowercase.

CSS and HTML

Classes: kebab-case. Custom properties: --kebab-case. IDs: kebab-case. BEM: Block__Element--Modifier.

SQL

Tables: plural snake_case. Columns: snake_case. Primary keys: id or table_id. Foreign keys: referenced_table_id. Indexes: idx_table_column.

Convert any text between naming conventions instantly with the Text Case Converter β€” paste plain English and convert to camelCase, snake_case, PascalCase, or kebab-case.

Open Text Case Converter

Free, browser-based, no signup.

Convert Text Case →
← Back to UltraToolkit All Posts →