Case Converter

Transform text to UPPER, lower, Title, camelCase, snake_case, and more.

About Case Converter

Text case mismatches are surprisingly common across every type of work. Developers copy variable names between languages and need them in camelCase for JavaScript but snake_case for Python. Writers paste titles from ALL CAPS word processors into CMS systems and need proper Title Case. Data analysts receive CSV exports where every value is UPPERCASE and need sentence case for reports. Translators and editors work with legacy documents in inconsistent casing. In each case, manual character-by-character editing is tedious and error-prone — especially in bulk. This free online case converter handles eight distinct case transformations: UPPERCASE (every character capitalised), lowercase (every character in lower case), Title Case (first letter of each word capitalised), Sentence case (only the first letter of each sentence capitalised), camelCase (no spaces, first word lower, subsequent words capitalised — the standard for JavaScript, Java, and Swift variables), PascalCase (no spaces, every word capitalised — the standard for class names in most OOP languages), snake_case (lowercase with underscores — the standard for Python variables and Ruby methods), and kebab-case (lowercase with hyphens — the standard for CSS class names and URL slugs). Paste any length of text — from a single variable name to a 10,000-word document — and get the converted output instantly. One click copies it to your clipboard. Everything runs locally in your browser with no server contact.

How to Use Case Converter

  1. Paste or Type Your Text: Enter your text in the input field. This can be a single word, a variable name, a paragraph, or an entire document.
  2. Choose Your Target Case: Select the case format you need: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, or kebab-case. The converted output appears instantly.
  3. Copy the Result: Click the copy button next to your chosen format to copy the converted text to your clipboard, then paste it wherever you need it.

Key Features

  • Eight Case Formats: Converts to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case — covering every common use case in writing, coding, and data processing.
  • Batch Text Conversion: Paste an entire document, variable list, or data export and convert all of it at once. There is no character limit on the input.
  • One-Click Copy: A copy button beside each output format lets you grab any converted result directly to your clipboard without selecting text manually.
  • Instant Real-Time Results: Conversion results appear as you type or immediately on paste — no submit button, no delay. Edit in the input and all outputs update instantly.
  • Multi-Language Text Support: Handles Unicode text including accented characters (é, ñ, ü, etc.) in Title Case and Sentence case conversions. Useful for non-English content.
  • 100% Browser-Based: All conversion runs locally in JavaScript. Your text is never uploaded to any server — safe for confidential code, proprietary documents, and client content.

Benefits

  • Eliminate Manual Case-Editing in Bulk: Converting 50 variable names from camelCase to snake_case by hand takes minutes and introduces typos. This tool does it in one paste.
  • Consistent Naming Conventions Across Codebases: Mixed naming conventions are a code quality issue. This tool lets developers quickly reformat variable names, database columns, API keys, and CSS classes to meet a project's style guide.
  • Fix Legacy Documents and Exports: Data exports and legacy documents frequently come in all-caps or random capitalisation. Converting to Sentence case or Title Case in one step saves significant clean-up time.
  • Fast and Free — No Account Needed: Works instantly in any browser. No sign-up, no subscription, no rate limits, and no advertisements interrupting your workflow.

Supported Formats & Capabilities

  • Plain text input (any length)
  • Unicode text including accented characters

Common Problems & Solutions

Title Case is capitalising words like 'and', 'or', 'the'. Is that correct?
The Chicago Manual of Style and AP Style guide specify that minor words (articles, conjunctions, prepositions under 4 letters) should remain lowercase in title case unless they are the first or last word. Different style guides disagree. This tool uses a simple capitalise-every-word rule for maximum compatibility — adjust minor words manually if your style guide requires it.
camelCase output has numbers breaking the formatting. How do I fix this?
Numbers within a phrase (e.g. 'page 2 title') are treated as word separators in camelCase and snake_case. The output for 'page 2 title' would be 'page2Title' or 'page_2_title'. This is the standard behaviour in most programming conventions.
Apostrophes in words like 'don't' are breaking Sentence case.
Apostrophes in contractions are treated as part of the word. 'Don't' will remain as 'don't' in sentence case (first word of a sentence becomes 'Don't'). If you see unexpected behaviour, it may be due to fancy/smart quotes — replace them with straight apostrophes first.
Why does kebab-case remove accented characters?
Strictly speaking, URL slugs (the primary use for kebab-case) should only contain ASCII characters. If your input includes accented characters and you need them preserved, use snake_case instead — this tool's snake_case output retains Unicode characters.

Pro Tips & Best Practices

  • For URL slugs, use kebab-case (lowercase-with-hyphens) — it is the SEO-preferred format. Search engines treat hyphens as word separators, making 'my-blog-post' more readable in URLs than 'myblogpost' or 'my_blog_post'.
  • When converting code comments or documentation between camelCase and snake_case, paste the entire file section at once rather than converting variable by variable — the bulk conversion is accurate and much faster.
  • Sentence case is the preferred style for most modern UI copy (buttons, tooltips, navigation labels). Title Case is better suited to headings and blog post titles. Use both freely depending on the context.
  • PascalCase is the standard for React component names, TypeScript interfaces and types, C# classes, and most OOP class names. If you are naming components or classes, always use PascalCase.

Privacy & Data Security

All case conversions are performed entirely in your browser's JavaScript engine. Your text is never transmitted to any server, stored in any database, or logged in any way. The tool works offline once the page has loaded.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?
In camelCase, the first word starts lowercase and subsequent words are capitalised (myVariableName). In PascalCase, every word — including the first — starts uppercase (MyVariableName). PascalCase is used for class names and React components; camelCase is used for variables and function names.
What is snake_case used for?
snake_case uses lowercase letters with underscores as word separators (my_variable_name). It is the standard naming convention for Python variables and functions, Ruby methods, database column names, and many REST API response fields.
What is kebab-case used for?
kebab-case uses lowercase letters with hyphens as word separators (my-variable-name). It is the standard for CSS class names, HTML attribute names, URL slugs, and npm package names.
Can I convert a whole document at once?
Yes. Paste your entire text — there is no length limit — and the conversion applies to the whole input simultaneously. The output can be copied with one click.
Is my text uploaded when I use this case converter?
No. The conversion runs entirely in your browser. Your text is never sent to a server.
Does it handle numbers in camelCase and snake_case?
Yes. Numbers are treated as neutral separators. 'Button 2 Label' converts to 'button2Label' in camelCase and 'button_2_label' in snake_case — consistent with most programming naming conventions.
What is Sentence case vs Title Case?
Sentence case capitalises only the first letter of the first word in each sentence (and proper nouns, if you add them manually). Title Case capitalises the first letter of every word. Sentence case is standard for UI copy and body text; Title Case is standard for headings and article titles.

Related Writing Utilities

Word Counter

Count words, characters, sentences, paragraphs, reading time, readability scores, and keyword density.

Lorem Ipsum Generator

Generate placeholder text by words, sentences, or paragraphs instantly.

Markdown Preview

Write Markdown and see a live rendered preview side by side.

Text Diff Checker

Compare two blocks of text line by line and highlight additions and removals.