camelCase Converter
Turn phrases into camelCase variable names such as userFirstName. Each line is converted separately.
Characters: 0Words: 0Lines: 0
Case types with examples
Starting text: The Lord of the Rings
camelCase
Words are joined with no spaces; every word after the first starts with a capital.
theLordOfTheRings
PascalCase
Words are joined with no spaces and every word starts with a capital.
TheLordOfTheRings
snake_case
Words are lowercase and joined with underscores.
the_lord_of_the_rings
kebab-case
Words are lowercase and joined with hyphens.
the-lord-of-the-rings
CONSTANT_CASE
Words are capitals joined with underscores.
THE_LORD_OF_THE_RINGS
Naming styles for code
Programmers join words without spaces, and each language community has a favourite style:
- camelCase: JavaScript and Java variables and functions (userFirstName).
- PascalCase: classes and React components (UserFirstName).
- snake_case: Python variables and database columns (user_first_name).
- kebab-case: CSS classes and web addresses (user-first-name).
- CONSTANT_CASE: constants and environment variables (USER_FIRST_NAME).
How the conversion works
The tool splits your text into words at spaces, hyphens, underscores and at capital letters inside camelCase words, then joins them in the style you pick. Each line is converted on its own, so you can convert a whole list of names at once.
How to use the camelCase tool
- Paste one name or phrase per line into the box.
- Click camelCase (or snake_case or kebab-case).
- Click the copy icon above the text to use the result.
Frequently asked questions
What is camelCase?
camelCase joins words together with no spaces. The first word is lowercase and every other word starts with a capital letter, like myVariableName.
Can I convert snake_case to camelCase?
Yes. Paste the snake_case text and click camelCase. Underscores and hyphens are treated as word breaks.