Mastering Naming Conventions
In programming, naming variables correctly is more than just a stylistic choice—it is a critical part of writing maintainable code. Different programming languages and frameworks enforce different standards. This tool helps you convert text instantly between the most common formats used in software development.
Common Case Types Explained
camelCase
Used in: JavaScript, Java, Swift
The first letter is lowercase, and each subsequent word starts with an uppercase letter. Spaces are removed.
snake_case
Used in: Python, Rust, SQL databases
All letters are lowercase, and spaces are replaced by underscores.
PascalCase
Used in: Classes (C#, JS), React Components
Similar to camelCase, but the very first letter is also capitalized.
kebab-case
Used in: URLs, CSS properties, HTML attributes
All letters are lowercase, and spaces are replaced by hyphens.
Pro Tips
- Acronym Handling: Many tools fail when converting acronyms like "XMLHTTPRequest". Our tool intelligently splits "XML" and "Http" to ensure readable output.
- Accent Sanitization: If you paste text like "Crème Brûlée", we automatically convert it to ASCII ("creme brulee") before applying casing rules, preventing syntax errors in your code.
- Prefix/Suffix: Use the "Smart Modifiers" section to batch generate code. For example, enter a list of database fields and add a "get" prefix to generate Java getters instantly.