What this tool does
Write a variable name or phrase in camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case and Title Case at once. You fill in these fields: Variable name or text. It shows camelCase, pascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and title Case.
Inputs
- Variable name or text: Longer text, up to 2000 characters.
How to use
- Type the variable name or text.
- Read the result: camelCase, pascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, and title Case. It appears once every required field has a valid value.
- Use the copy button to copy the text.
Limitations
- Digits stay attached to the letters next to them, so user2name and v2 are one word each. Only a capital after a digit starts a new word: HTML5Parser becomes HTML5 and Parser.
- All the text is read as one name. Line breaks separate words, so several lines are joined into one result, not converted line by line.
- The result is not checked against the naming rules of any programming language. A name that starts with a digit stays that way.
- Title Case here capitalizes every word. It does not keep small words such as of or the in lower case.
- Text with no letters or digits gives no result.
FAQs
- Q: How does it decide where one word ends and the next begins?
- A: A word ends at any character that is not a letter or digit (a space, line break, punctuation mark, underscore or symbol), between a lower case letter or digit and a capital (helloWorld), and before the last capital of a run of capitals (XMLHttp becomes XML and Http).
- Q: What happens to apostrophes?
- A: They are dropped, so don't becomes dont and stays one word.
- Q: Are acronyms kept in capitals?
- A: Only in CONSTANT_CASE. In the other cases an acronym is written like any other word, so XML becomes xml or Xml depending on the case.
- Q: Does it handle accented letters?
- A: Yes. Accented letters count as letters and are lower or upper cased with the rest.
Explore Similar Tools
Explore more tools like this one:
- Case Converter - Change text to UPPERCASE, lowercase, Title Case,...
- Sentence Case Converter - Capitalize the first letter of every sentence and line...
- Title Case Converter - Capitalize a title so every main word starts with a...
- CSV to JSON Converter - Convert CSV text into a structured JSON array. Handles...
- Unix Timestamp Converter - Convert between Unix timestamps and calendar dates in...