Tabwrench tools Small tools that run in your browser. No sign-up, no upload.
Tools / Text / Case converter

Case converter

Type or paste text and get nine versions at once: the writing styles for prose and the naming styles for code.

Runs in your browser. Nothing you paste leaves this page.
Input

The nine styles

StyleExampleWhere it is used
UPPERCASEQUICK BROWN FOXHeadings, warnings, acronyms
lowercasequick brown foxEmail addresses, tags, normalising input
Title CaseQuick Brown FoxHeadlines, names, menu items
Sentence caseQuick brown foxBody text, buttons and labels in most style guides
camelCasequickBrownFoxVariables and functions in JavaScript, Java, Swift
PascalCaseQuickBrownFoxClasses, types, React components
snake_casequick_brown_foxPython, Ruby, database columns
kebab-casequick-brown-foxURLs, CSS classes, file names
CONSTANT_CASEQUICK_BROWN_FOXConstants, environment variables

How words are found

For the five naming styles the text is first split into words. A new word starts at any space or punctuation mark, where a lowercase letter is followed by an uppercase one (userProfile → user, Profile), and where a run of capitals ends (imageURLPath → image, URL, Path). Each line is converted separately, so you can paste a list of names and convert them all.

Title case here capitalises every word. Style guides such as AP or Chicago keep short words like “of” and “the” in lowercase, which needs an editor's judgement.

Questions

Does it work with accented letters?

Yes. Conversion follows Unicode rules, so é becomes É and ß becomes SS.

What happens to digits?

Digits stay with the word they are attached to. version2Beta becomes version2, Beta.

Why did my acronym change?

camelCase and PascalCase lowercase everything after a word's first letter, so parseHTML becomes parseHtml. Most naming guides recommend that form.

Related tools