General
Counter/Index
Boolean
Array/List
Map/Dictionary
Function/Method
Class/Interface
camelCase
snake_case
PascalCase
kebab-case
UPPER_SNAKE
Hungarian
Concise Balanced Descriptive
camelCase
userCount, isActive, calculateTotal
snake_case
user_count, is_active, calculate_total
PascalCase
UserCount, IsActive, CalculateTotal
kebab-case
user-count, is-active, calculate-total
UPPER_SNAKE
USER_COUNT, IS_ACTIVE, CALCULATE_TOTAL
Hungarian
nUserCount, bIsActive, fnCalculateTotal

About the Variable Name Generator

Naming variables is one of the most important aspects of writing clean, maintainable code. Good variable names make your code self-documenting and easier to understand for other developers (and your future self).

Choosing Appropriate Variable Names

A good variable name should:

Variable Naming Conventions

Different programming languages and projects often use different naming conventions:

Special Types of Variables

Different types of variables often follow specific naming patterns:

Domain-Specific Naming

Using domain-specific terminology in your variable names helps make your code more intuitive to those familiar with the business domain. For example, in an e-commerce application, using terms like "cart", "order", "product", etc., makes the code more accessible to domain experts.