CodeKitHub
Everyday Tools

Text Case Converter Online

Last updated:

Paste your text and convert it to any case with one click: UPPERCASE, lowercase, Title Case, Sentence case — plus the programmer cases camelCase, PascalCase, snake_case and kebab-case. Handles both prose and code identifiers.

What Is This Tool?

A case converter changes the capitalization style of text. Writers use it to fix accidental caps-lock passages, apply proper Title Case to headlines, or normalize copied text. The Title Case here follows editorial convention: minor words like "of", "and" and "the" stay lowercase unless they start or end the title.

For programmers it converts identifier styles: camelCase (JavaScript variables), PascalCase (class names), snake_case (Python), and kebab-case (URLs and CSS). It splits words on spaces, underscores, hyphens and existing capital letters, so it converts between any two styles directly.

Why Use It?

  • Eight case styles on one page — prose cases and programmer cases together.
  • Editorial Title Case that keeps minor words (a, of, the) lowercase, like real headlines.
  • Converts between identifier styles directly: camelCase → snake_case in one click.
  • Fix caps-lock accidents without retyping.
  • Free, instant, no upload.

How to Use

  1. Paste or type your text in the input box.
  2. Click the case style you want.
  3. The result appears in the output box below.
  4. Click "Copy" to use it.

Example

Input

the quick brown fox

Output

Title Case: The Quick Brown Fox
camelCase:  theQuickBrownFox
snake_case: the_quick_brown_fox

Note the editorial Title Case keeps "the" capitalized only at the start.

Which case should you use?

Case styleUse it for
camelCaseJavaScript/Java/TypeScript variable and function names
PascalCaseClass and component names in most languages (React components, C# classes)
snake_casePython and Ruby variables/functions, database column names
kebab-caseURL slugs, CSS class names, HTML attributes, file names, Git branch names
Title CaseHeadlines, book/article titles — minor words like "of", "the" stay lowercase
Sentence caseButton labels and UI text in modern design systems (Material Design, Fluent UI)

Practical tips

  • Porting a Python API response to a JavaScript frontend? Paste the snake_case field names and convert to camelCase in one pass — faster and less error-prone than renaming each key by hand.
  • URL slugs and CSS class names require kebab-case. Paste the page title directly instead of manually replacing spaces with hyphens and lowercasing everything.
  • Git branch names and Docker image tags follow the same kebab-case convention as URLs — "Fix Login Bug" becomes fix-login-bug with the same click.
  • Database columns and most SQL style guides use snake_case; converting a spec document's Title Case headings avoids the typos that creep in when retyping fifteen field names by hand.
  • Sentence case, not Title Case, is the current standard for buttons and UI labels in Material Design and Fluent UI — Title Case on a button now reads as dated outside headlines and book titles.

Where this fits in real workflows

Case conversion is usually one step in a bigger cleanup: pull a messy list of identifiers or headings from a spreadsheet or API doc, fix the case here, then remove stray blank lines or doubled spaces carried over from a PDF or email export — case conversion alone won't fix spacing.

Turning a blog post title into a URL slug takes two tools at most: convert the title to kebab-case here, then percent-encode it only if it contains non-ASCII characters or symbols. Plain English titles are already a valid slug after the case conversion alone.

Text Cleaner · URL Encoder / Decoder

Frequently Asked Questions

What's the difference between Title Case and Sentence case?

Title Case capitalizes every major word (used for headlines and book titles); Sentence case capitalizes only the first word of each sentence (used for normal prose and most modern UI text).

Which words stay lowercase in Title Case?

Short function words: articles (a, an, the), short conjunctions (and, but, or) and short prepositions (of, in, to, at…) — unless they're the first or last word. This follows the style used by major publications.

When should I use camelCase vs snake_case?

Follow your language's convention: camelCase for JavaScript/Java variables, PascalCase for class names in most languages, snake_case for Python and Ruby, kebab-case for URLs, CSS classes and file names. These are established naming conventions in programming), not arbitrary style choices — mixing them within one codebase is what style linters flag first.

Can it convert camelCase directly to snake_case?

Yes. The converter recognizes existing capital letters as word boundaries, so myVariableName → my_variable_name works in one click — handy when porting code between languages.

Does it work with non-English text?

Case conversion applies to scripts that have letter case (Latin, Cyrillic, Greek). Chinese and Japanese characters have no case and pass through unchanged — mixed text is safe.

Related Tools