ToolsHub4u

Change text case without retyping it

Paste a sentence, a heading or a list of variable names and pick the style you need. The result updates as you type, ready to copy or to apply back over the input.

  • Twelve case styles
  • Live output
  • Apply back to input
Ready Text & Writing
Case is not capitalisation aloneCamel, snake and kebab case also change the spaces between words. Read the result before pasting it into code or a filename.
1Enter
2Adjust
3Copy result

Case Converter

1

Text and case style

Line breaks are kept. Nothing is uploaded.

Convert to

Comma-separated. Used by title case only, so product names survive the conversion.

No text yet Live
2

Converted text

Converted to Title Case

Title Case

Words
17
Characters
79
Sentences
2
Lines
1

Short joining words stay lower case unless they are first or last. Add product names to the keep list if they must keep their capitals.

Thirteen case styles, one text box. Type or paste, pick a style, and the converted text appears below it ready to copy or to apply back over the input.

The one people reach for is title case, and the defaults show how it behaves: the quick brown fox jumps over the lazy dog becomes The Quick Brown Fox Jumps over the Lazy Dog. Every word is capitalised except the short joining words — "over" stays lower because it is not the first or last word.

What each style does

The thirteen styles and an example of each
StyleExampleUsed for
Sentence caseHello world. I am here.Body copy, captions
lowercasehello worldTags, email addresses
UPPERCASEHELLO WORLDLabels, warnings
CapitalisedHello WorldEvery word, including joining words
Title CaseThe Quick Brown Fox Jumps over the Lazy DogHeadlines, headings
camelCaseuserProfileSettingsVariables, JSON keys
PascalCaseUserProfileSettingsClasses, components
snake_caseuser_profile_settingsDatabase columns, Python
kebab-caseuser-profile-settingsURLs, CSS classes
CONSTANT_CASEUSER_PROFILE_SETTINGSConstants, environment keys
dot.caseuser.profile.settingsConfig namespaces
aLtErNaTiNgaBcDeFMocking, emphasis
iNVERSE cASEhELLO, wORLD!Flipping existing capitals

The six code styles share a rule: words are found by splitting on anything that is not a letter or digit, and by treating a lower-to-upper transition as a boundary. So User profile settings, user_profile_settings and userProfileSettings all convert to the same user-profile-settings in kebab case. Existing capitals are treated as word starts, which is what makes that work.

Proper nouns, acronyms and the keep list

Title case has to decide what a word is, and it decides by lowercasing first. iPhone becomes Iphone, McDonald becomes Mcdonald, and NASA becomes Nasa. That is correct title-case behaviour by one convention and wrong for the brand.

The keep list fixes it. Add ToolsHub4u, macOS, JavaScript and those strings keep their exact spelling wherever they appear. In the test, the quick brown fox jumps over the ToolsHub4u docs gave The Quick Brown Fox Jumps over the ToolsHub4u Docs, with the brand untouched and "docs" capitalised.

The keep list only applies to title case. Switch to sentence case and it is ignored: NASA said so. becomes Nasa said so., because sentence case lowercases the whole string before re-capitalising the first letter of each sentence. It does restore a standalone i to I, which is the one correction it makes.

Worked example: a heading and a variable

Worked exampleInput: the 5 best noise-cancelling headphones for a long flight
Title case: The 5 Best Noise-cancelling Headphones for a Long Flight
Sentence case: The 5 best noise-cancelling headphones for a long flight
kebab-case: the-5-best-noise-cancelling-headphones-for-a-long-flight

The heading keeps "for" and "a" lower because they are joining words in the middle. The slug lowercases everything and replaces every space with a hyphen, which is what a URL wants — though it keeps the digits, and most CMS slug fields do the same.

Two details in that example are worth noticing. Title case capitalised only "Noise" in "noise-cancelling", because the hyphen makes the second half a separate word; and kebab case left that hyphen where it was, since a hyphen is already the separator it would otherwise insert. Punctuation is discarded rather than transliterated, so Hello, World! becomes hello-world with no comma and no exclamation mark.

Which code style to pick

The choice is usually made for you by the language or framework, not by taste:

  • camelCase — JavaScript and Java variables and functions; JSON keys in most APIs.
  • PascalCase — React components, C# classes, type names.
  • snake_case — Python variables, SQL columns, Ruby.
  • kebab-case — URLs, CSS class names, HTML attributes, npm package names.
  • CONSTANT_CASE — values that never change, and environment variable names.
  • dot.case — config keys and event names, as in user.profile.updated.

One warning: converting an existing name can collide. userID and user_id both become user-id, so a bulk conversion across a codebase is a refactor, not a formatting pass.

What it will not do

  • No language awareness. It does not know that "Polish" is a nationality and "polish" is a verb, so title case lowercases the second meaning and loses the first.
  • No sentence-boundary intelligence. Sentence case capitalises after any full stop, so "e.g. this" becomes "e.g. This".
  • No accent handling in code styles. Only ASCII letters and digits survive the split, so café becomes caf.
  • Whitespace tidy is optional. With it on, runs of spaces collapse, each line is trimmed and three or more newlines become two. With it off, the layout is preserved exactly.
  • No undo. Applying the result back over the input replaces your original, so keep a copy before a second pass.

The safest habit with anything important: convert, read the first line, and check the words that are names. Those are the ones that change without warning.

Questions

Common questions

Short answers to what people ask before using this tool.

What is the difference between title case and capitalised?

Title case keeps short joining words such as "of", "the" and "over" in lower case unless they come first or last. Capitalised starts every word with a capital, so "The Quick Brown Fox Jumps Over The Lazy Dog".

Why did my brand name lose its capitals?

Title and sentence case lowercase each word before re-capitalising it, so iPhone becomes Iphone and NASA becomes Nasa. Add the exact spelling to the keep list to protect it — but note the list only works in title case, not sentence case.

Do the code styles keep punctuation?

No. Spaces, commas and other punctuation become the separator, or disappear. Hello, World! in kebab case is hello-world. Accented letters are dropped rather than transliterated, so café becomes caf.

What does the trim option do?

It collapses runs of spaces to one, removes spaces at the start and end of each line, and reduces three or more newlines to two. Turn it off when the original spacing or indentation matters.

Can I convert a whole document at once?

Yes: paste as much as the box takes and it converts in one pass. Applying the result replaces the whole input, so copy your original first if you may need it back.

Why is "over" not capitalised in my heading?

Because it is on the short-word list: prepositions and conjunctions of three letters or fewer, plus a handful of longer ones such as "with", "from", "over" and "upon". Capitalised mode ignores that list and uppercases every word.

What is alternating case for?

It alternates lower and upper letter by letter — aBcDeF — which is the "mocking" style used in memes and social posts. It has no typographic use, and inverse case is the other novelty: it flips whatever capitals are already there.

Does it change my punctuation or line breaks?

In the letter-case styles, no: only the case changes and everything else is untouched. The code styles rebuild the string from words, so punctuation is lost and line breaks become separators.