Sentence case to camelCase
Convert Sentence case to camelCase in your browser: First name becomes firstName. With 6 examples, acronyms and digits included — 2 of them do not convert back unchanged, and the page shows why. Free, nothing uploaded.
Part of writing tools and developer tools.
camelCase
firstName
PascalCase
FirstName
snake_case
first_name
SCREAMING_SNAKE_CASE
FIRST_NAME
kebab-case
first-name
Title Case
First Name
Sentence case
First name
lower case
first name
UPPER CASE
FIRST NAME
Sentence case to camelCase examples
| Sentence case | camelCase | Copy |
|---|---|---|
| First name | firstName | |
| Date of birth | dateOfBirth | |
| Upload a PDF file | uploadAPdfFile | |
| Phone number 2 | phoneNumber2 | |
| Accept terms and conditions | acceptTermsAndConditions | |
| Last login at | lastLoginAt |
2 rows do not survive the round trip back to Sentence case: uploadAPdfFile comes back as Upload a pdf file, not Upload a PDF file; phoneNumber2 comes back as Phone number2, not Phone number 2. The converter keeps only the words, lowercased, so the capitals of an acronym and the place of a separator before a digit are gone once the text is converted.
Where you convert Sentence case to camelCase
Human labels turned into keys: a spreadsheet column headed Date of birth becomes a dateOfBirth property when the sheet is imported as JSON, and form labels become field names the same way. Every word counts, short ones included, and punctuation is dropped. There is no page for the way back: a key like uploadAPdfFile no longer says that PDF was an acronym, so the sentence it gives needs proofreading anyway.
How the conversion works
The converter first reads Date of birth as the words date / of / birth — splitting on spaces, underscores and hyphens, before every capital that follows a lowercase letter or a digit, and before the last capital of a run that starts a new word (HTTPResponse is HTTP / Response). Then it keeps the first word lowercase, capitalises the first letter of every following word and joins them with no separator: dateOfBirth. Since it starts from the words and not from the Sentence case spelling, text already in any other case gives the same result.
Other conversions
- camelCase to snake_case
- snake_case to camelCase
- kebab-case to camelCase
- camelCase to kebab-case
- camelCase to SCREAMING_SNAKE_CASE
Or open the full case converter and see your text in all nine cases at once.