Naming Conventions, Quick Facts
- •camelCase is the JavaScript/Java convention for variables and functions: no spaces, first word lowercase, each following word capitalised.
- •snake_case is standard in Python and Ruby; kebab-case is standard for URLs, CSS classes, and HTML attributes.
- •CONSTANT_CASE (all caps with underscores) conventionally marks a constant that never changes at runtime.
- •PascalCase (capitalised camelCase) is the convention for class and component names across most languages.
The Real Problem This Solves
Every language and style guide has its own naming convention, and switching between an API's snake_case JSON fields and your codebase's camelCase variables by hand, one field at a time, wastes time and introduces typos.
This tool converts in every direction at once, so you can paste any format in and grab whichever case you actually need.
How the Conversion Works
The converter first splits your text into individual words, detecting boundaries at spaces, hyphens, underscores, and lowercase-to-uppercase transitions (so it can read camelCase or PascalCase input too), then rejoins those words using the target convention's own rules for spacing, separators, and capitalisation.
Example: the input userFirstName is split into "user," "First," "Name," then rejoined as user_first_name in snake_case, letting you move fluidly between a database column name and a JavaScript variable.
| Case | Example | Common Use |
|---|---|---|
| camelCase | firstName | JavaScript/Java variables & functions |
| PascalCase | FirstName | Class and component names |
| snake_case | first_name | Python variables, database columns |
| kebab-case | first-name | URLs, CSS classes, HTML attributes |
| CONSTANT_CASE | FIRST_NAME | Constants across most languages |
Frequently Asked Questions
Can I paste camelCase or snake_case text and convert it to something else?
Yes. The tool detects word boundaries from spaces, hyphens, underscores, and capital letters, so any input format converts cleanly to any other.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every major word ("The Quick Brown Fox"). Sentence case only capitalises the first letter of each sentence, like normal prose ("The quick brown fox.").
Does this handle punctuation correctly?
Word-splitting treats punctuation as part of the surrounding word, so heavily punctuated text may need a manual once-over for edge cases like contractions or trailing periods.
Why does my database use snake_case but my frontend use camelCase?
This is a very common convention split: SQL databases and Python/Ruby backends traditionally use snake_case, while JavaScript ecosystems use camelCase. Many API layers convert automatically at the boundary; this tool helps when converting by hand.
Is my text stored or sent anywhere?
No, all conversion happens instantly in your browser.
Need to check the length of your renamed text?
Once you've settled on a naming style, check word and character counts with our Word Counter.
Open Word Counter →