tomai
Log in
Free · Text Tools

Case Converter

UPPERCASE, lowercase, Title Case, camelCase, snake_case and more

Input
Output

Every naming style has a habitat

Ten styles, one click

UPPERCASE, lowercase, Title Case, Sentence case, alternating case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE each convert the same input with a single tap.

🔒

Camel-case aware

The word splitter recognizes camelCase boundaries, so feed in existing identifiers like userID and get user_id or user-id back without any word lost in translation.

🎯

Built for code

The output pane refreshes with every keypress, so a column name, CSS class or commit message can be flipped between styles without leaving the keyboard.

What Is a Case Converter?

A case converter rewrites text from one capitalization style to another. Styles are not just cosmetic: programming languages demand camelCase or snake_case for identifiers, URLs work best in kebab-case, and headlines read better in Title Case. Rewriting by hand — especially when the phrase is already in another style — invites typos, and re-typing a long string wastes time. This tool applies ten styles instantly as you type, and it splits words at camelCase boundaries too, so converting existing identifiers never loses a word. Whether the target is a database column name, a CSS class or a headline, the rewritten text appears instantly in the same editor, ready to copy.

Styles you can switch between

  • ⬆️ UPPERCASE and ⬇️ lowercase
  • 📖 Title Case and Sentence case for headlines and prose
  • 🐫 camelCase and PascalCase for variables and class names
  • 🐍 snake_case, kebab-case and CONSTANT_CASE for files and configs
  • 🎭 Alternating aLtErNaTiNg case for emphasis
  • 🧠 Word-boundary aware: understands camelCase and hyphenated input

Where the styles matter

  • Renaming code identifiers after a style-guide change
  • Turning an ALL CAPS comment into readable Sentence case
  • Preparing headline variants for an A/B test
  • Producing slug-friendly kebab-case URLs from titles

The conversion runs entirely in your browser — nothing you type is uploaded, which keeps proprietary code and unpublished copy safe.

Conversions that respect acronym boundaries

  • camelCase and PascalCase split on capitals; an acronym run like XMLParser counts as one boundary by this tool.
  • snake_case and kebab-case lowercase everything; SCREAMING_SNAKE stays upper for constants.
  • Title Case applies small-word rules (a, of, the stay lower mid-title) — what style guides actually prescribe.

Frequently asked questions

How does camelCase/snake_case handle existing camelCase input?

Word boundaries are detected both at spaces/hyphens/underscores AND at lowercase-to-uppercase transitions, so "myVariableName" splits into "my", "variable", "name" correctly before converting to your chosen style.

Is my text uploaded anywhere?

No — everything runs in your browser with plain JavaScript. Nothing you type is ever sent to a server.

Can I convert code identifiers, not just prose?

Nothing is uploaded. Case conversion is a pure text transform done in your browser, which also means it works offline once the page has loaded.

Related tools

Related tools