Text Case Converter
Changing the case of an identifier looks trivial and is not. The hard part is deciding where the words are: XMLHttpRequest is three words, userID2 is three, and a converter that splits them wrong produces something that looks perfectly fine and is wrong. Every version here is split back into words afterwards, and all of them must agree.
What this generator does
Splits your text into words — handling runs of capitals, digits and separators — and writes those words out in eight conventions at once.
How to use this tool
- Paste the text — a variable name, a heading, a phrase.
- Convert it, and take whichever shape you need.
- Check the split shown at the top if the result looks unexpected.
- Every shape is produced at once, so there is nothing to choose first.
Understanding the controls
- Your text
- Up to two thousand characters. Underscores, hyphens, dots, slashes and spaces are all treated as word breaks, as are the case changes inside a name.
Common use cases
- Renaming a variable to match a codebase's convention
- Turning a heading into a file name or a URL slug
- Converting a column name between database and code styles
- Making a constant name from a phrase
- Checking how a converter splits an awkward name before relying on it
How this generator works
Each version is split back into words and compared against the original split — all eight must give the same words in the same order. The letters and digits are also compared between two of the versions to confirm none was lost or added. A wrong split is the one mistake a case converter can make, and it always produces output that looks correct.
Randomness and fairness
Nothing is random. The same text always converts the same way.
For how randomness is produced across the whole site, see how Generate Random works.
Limitations and good to know
- English word breaks: a run of capitals followed by a lower-case word is treated as two words, which is right for XMLHttp and wrong for a name that genuinely is all capitals.
- Punctuation other than separators is dropped, since none of these conventions can carry it.
- Accented letters are kept but not transliterated.
- Digits become words of their own, so version2 splits into three words rather than two.
Privacy and your data
Conversion happens in your browser. Nothing you paste is transmitted or stored.
Related generators
- Lorem Ipsum GeneratorPlaceholder text in nine registers, by the word, sentence or paragraph — and exactly the number you asked for, counted back off the result.
- URL Slug GeneratorA kebab-case URL slug for test data or mockups.
- Database Table Name GeneratorGenerate an example database table name in common snake_case_plural convention, like app_orders.
- Morse Code TranslatorTurns text into morse and morse back into text, with anything the code cannot carry listed rather than dropped.