Case Converter — camelCase, snake_case, kebab-case, Title Case
Rename a variable, normalise a heading or convert an identifier between naming conventions in one paste. Words are split on spaces, underscores, hyphens, dots and slashes, so it works best on phrases and identifiers that already have separators.
Naming conventions and where they are used
camelCase — JavaScript/TypeScript variables and functions, Java fields, JSON keys in many APIs. PascalCase — class, type and component names in most languages; C# public members. snake_case — Python variables and functions, Ruby, Rust, SQL columns, most database schemas. SCREAMING_SNAKE_CASE — constants and environment variables everywhere. kebab-case — URLs, CSS class names, HTML attributes, CLI flags, Kubernetes resource names. Title Case and Sentence case — headings and UI copy.
How word boundaries are detected
The converter splits the input on whitespace, underscores, hyphens, dots and forward slashes. It does not split on capital letters, so userId is treated as a single word and parseHTMLString stays in one piece (snake_case gives userid, not user_id). To convert camelCase input, put a space or separator before each capital first. The whole input is processed as one block, not line by line: newlines count as whitespace, so convert one name at a time.
What Title Case and Sentence case do
Title Case upper-cases the first letter of every word and leaves the other letters as typed. It does not keep short words such as a, of or the in lower case, and an apostrophe counts as a boundary, so it's becomes It'S. Sentence case lower-cases the whole input and capitalises only its very first character, not the start of each later sentence. Check headings by hand before publishing them.
How to use it
- Paste a phrase or identifier (words separated by spaces, underscores, hyphens or dots).
- Pick the target case under Code Naming (camel, Pascal, snake, kebab, constant) or Text (Title, Sentence, UPPERCASE, lowercase).
- Copy the converted output back into your editor.
One name, every convention
Starting from user account created at:
camelCase userAccountCreatedAt PascalCase UserAccountCreatedAt snake_case user_account_created_at SCREAMING_SNAKE_CASE USER_ACCOUNT_CREATED_AT kebab-case user-account-created-at Title Case User Account Created At Sentence case User account created at
Common use cases
- Turning a snake_case column name such as
created_atinto a camelCase API field, one name at a time. - Converting a label like
Order Totalinto a kebab-case slug or CSS class name. - Normalising environment variable names to SCREAMING_SNAKE_CASE.
- Capitalising the first letter of every word in a short heading or menu label.
What the buttons actually do
Read this section before relying on the converter for code, because the behaviour is simpler than the descriptions above suggest. Words are found by splitting the input on whitespace, underscores, hyphens, dots and forward slashes. Capital letters inside a word are not treated as boundaries, and the whole input is processed as one block rather than line by line.
userIdto snake_case givesuserid, notuser_id, because there is no separator to split on. Add a space first (user Id) or convert from a form that already has separators.- Multi-line input is merged: newlines count as whitespace, so a pasted list of names becomes one long identifier in the code-naming cases. Convert one name at a time.
- Title Case upper-cases the first letter after every word boundary and does not skip small words. It also treats an apostrophe as a boundary, so
it'sbecomesIt'S. - Sentence case lower-cases everything and capitalises only the very first character of the whole input, not each sentence after a full stop.
- UPPERCASE and lowercase use the browser's standard conversion and leave punctuation and line breaks alone.
Where the browser's conversion has special rules, such as the German ß becoming SS in upper case, you get those rules.
Reliable ways to use it
The converter works best on short phrases where the words are already separated. Typing order total amount and pressing camelCase yields orderTotalAmount; PascalCase gives OrderTotalAmount; CONSTANT_CASE gives ORDER_TOTAL_AMOUNT; dot.case gives order.total.amount. Round trips work between the separator-based styles: order-total-amount to snake_case gives order_total_amount.
Check the output before pasting it into code. Acronyms such as HTTP separated by spaces become Http in camelCase and PascalCase, which matches many style guides but not all, and digits are kept exactly as typed.
Frequently asked questions
Does it handle acronyms like HTML or API?
Only when they are separated. HTTP server becomes httpServer in camelCase and HttpServer in PascalCase. Capital letters inside a word are not treated as boundaries, so parseHTMLString is not split.
Can I convert many lines at once?
No. The whole input is handled as one block and newlines are treated like spaces, so a pasted list becomes one long identifier in the code-naming cases. Convert names one at a time.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every word, including small words. Sentence case lower-cases everything and capitalises only the first character of the input.
Is my text sent anywhere?
No. Conversion runs in your browser.
Why did my camelCase text not convert to snake_case?
The tool splits on spaces, underscores, hyphens, dots and slashes only. A word like userId has no separator, so it is treated as one word and simply lower-cased.
Is the output the same as a library like lodash?
Not always. Libraries such as lodash split on capital letters and handle acronyms. This tool is a quick text converter that relies on separators you have already typed.