Case Converter
Convert text between twelve casing styles, a line at a time, without it leaving the tab.
What this tool does
Case Converter offers twelve styles from one list. Six are for prose — uppercase, lowercase, Title Case, Sentence case, aLtErNaTiNg and iNVERSE — and six rebuild the text as an identifier: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case. The prose styles reshape the characters you gave them; the identifier styles take the words apart and put them back together.
That rebuilding follows two rules worth knowing. Words are split at case boundaries as well as at spaces, so parseHTMLResponse becomes parse-html-response and utf8Encoder becomes utf8_encoder, with digits staying attached to the letters they follow. Everything that is not a letter or a digit is then treated as a separator, punctuation and emoji included — "don't stop" comes back as don_t_stop, and [email protected] collapses to user_example_com. Accented and non-Latin letters survive the trip; café keeps its é. Nothing checks that the result is a legal identifier, so a line starting with a number keeps it: 2 fast 2 furious becomes 2Fast2Furious.
Title case and Sentence case both lowercase a word before recapitalising it, and that is the limitation to plan around. NASA comes back as Nasa, iPhone as Iphone, and O'Brien as O'brien, because there is no dictionary of names or acronyms behind any of this. Sentence case has two further blind spots: every full stop reads as the end of a sentence, so "went to the u.k. yesterday" comes back with Yesterday capitalised, and every standalone i is rewritten as I — right in English, wrong in Catalan or Polish where i is an ordinary word. All three are quick to repair by hand, but check the output before you ship it.
Everything here is done by the page you are reading. There is no request to a server and no copy of your text on our side, which is the practical reason to use it on a column of customer field names, an unreleased headline or an internal schema rather than pasting them into a site that processes text on someone else's machine.
How to use it
- Paste the text. Type into the input box or press Load sample. Empty input is refused with a message rather than quietly returning nothing.
- Pick a style from Convert to. Twelve options, each labelled in its own casing, so UPPER CASE, camelCase and dot.case show you what you will get.
- Decide how titles treat short words. With Title Case selected, "Keep short words lowercase in titles" leaves a, an, and, of, the, to, vs. and their relatives lowercase — unless the word opens or closes the line. Switch it off to capitalise every word.
- Leave the per-line checkbox alone. "Treat each line separately" is on by default and, as the code stands today, changes the output for none of the twelve styles except Sentence case: the other eleven already convert one line at a time whatever the box says. In Sentence case it affects only a line that begins with a space, whose first letter is left lowercase while the box is on. On is the sensible default.
- Copy the result. The output pane holds the converted text, with a count of the words converted and the style applied underneath.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Matching a codebase's naming convention
Paste a list of field labels and get snake_case for a database, camelCase for JavaScript or CONSTANT_CASE for environment variables, one per line.
Rescuing a headline typed in caps lock
Uppercase text carries no word boundaries a reader can use. Title Case with the short-word option on restores them in a single pass, though any acronym or brand name in the line still has to be put back by hand afterwards.
Turning page titles into class names
kebab-case strips the punctuation and spaces out of a heading, which is the shape CSS classes, filenames and asset slugs expect.
Normalising an exported spreadsheet column
Column headings arrive in whatever casing the last person used. One conversion makes the whole set consistent before the import.
Toning down a shouty paragraph
Sentence case pulls a block written in title case or capitals back to ordinary prose, leaving the proper nouns to fix by eye.
Questions
Does any of my text leave this tab?
Why did NASA turn into Nasa?
Which words stay lowercase in Title Case?
What happens to punctuation in camelCase and snake_case?
Does it work with accents, or with Chinese and Arabic?
Are hyphenated words handled?
What are alternating and inverse case for?
Related tools
- Word Counter — Count words, characters, sentences and reading time.
- Remove Line Breaks — Collapse hard wraps back into flowing paragraphs.
- Remove Extra Spaces — Normalise double spaces and stray whitespace.
- Sort Lines — Sort lines alphabetically, numerically or randomly.
- Remove Duplicate Lines — Delete repeated lines from a list.
- Find and Replace — Bulk replace text with optional regular expressions.