WebToolX

Command Palette

Search for a command to run...

Text & Writing

Case Converter

Instantly convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more — free, private, in-browser.

Select a case style

Your converted text will appear here.

What is a Case Converter?

Text case refers to how capital and lowercase letters are distributed in a string. Different programming languages, file systems, and style guides each prescribe a specific casing convention for identifiers, filenames, CSS classes, and database columns. Switching between them by hand is tedious and error-prone — a single misplaced capital letter in a snake_case identifier can produce a subtle bug that takes minutes to track down.

This Case Converter handles ten common formats in a single click. Paste your text, pick a style, and the converted result appears instantly. You can then copy it with one more click and paste it directly into your editor, terminal, or spreadsheet.

Supported Case Styles

  • UPPERCASE — every letter is capitalised. Good for emphasis, headings in certain style guides, or SQL keywords.
  • lowercase — every letter is small. Common for URL paths, email addresses, and many terminal commands.
  • Title Case — the first letter of every word is capitalised. Standard for article titles, product names, and navigation labels.
  • Sentence case — only the very first letter of the text is capitalised. Mirrors how you would type a regular English sentence.
  • camelCase — words are joined with the first word lowercase and subsequent words capitalised. The default convention for variables and functions in JavaScript, Java, and Swift.
  • PascalCase — like camelCase but every word starts with a capital. Used for class names, React components, and TypeScript types.
  • snake_case — words are lowercased and joined with underscores. The idiom for Python variables, Ruby methods, and SQL column names.
  • kebab-case — words are lowercased and joined with hyphens. Found in CSS class names, HTML data attributes, npm package names, and URL slugs.
  • CONSTANT_CASE — SCREAMING_SNAKE_CASE. Used for constants and environment-variable names across many languages.
  • aLtErNaTiNg — letters alternate between lowercase and uppercase, producing the "mocking" style popular in internet culture.

How to Use It

Type or paste any text into the input box. The converted output updates immediately below as you type — there is no button to press for the transformation itself. When you are happy with the result, click the Copy button to put it on your clipboard. If you want to see a quick demo, hit Try an example to load a sample sentence and watch all the modes in action.

Common Use Cases

Developers reach for this tool when renaming a batch of database columns from Title Case to snake_case, or when a design spec uses kebab-case identifiers but the codebase expects camelCase. Writers use it to quickly generate a properly formatted title from rough draft text. Social-media creators use the alternating mode for stylised posts.

Privacy

The converter runs entirely in your browser. Your text never leaves your device — no network requests are made, and nothing is stored on any server. This makes it safe to use with source code snippets, API keys, internal project names, or any other sensitive content.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

Both join words without spaces, but camelCase starts with a lowercase letter (e.g. myVariableName) while PascalCase — also called UpperCamelCase — starts with an uppercase letter (e.g. MyClassName). Developers use camelCase for variables and functions in JavaScript/TypeScript and PascalCase for class names and React components.

When should I use snake_case versus kebab-case?

snake_case (words joined by underscores) is the convention for variable and function names in Python, Ruby, and SQL column names. kebab-case (words joined by hyphens) is common in CSS class names, HTML attributes, URL slugs, and file names in many web projects. The choice usually follows the language or framework you are working in.

What is CONSTANT_CASE and when is it used?

CONSTANT_CASE is SCREAMING_SNAKE_CASE — all uppercase letters joined by underscores. It is the conventional way to name compile-time or module-level constants in many languages, including Python (MAX_RETRIES), Java (DEFAULT_TIMEOUT), and JavaScript/TypeScript (API_BASE_URL).

Does this tool work offline or send my text to a server?

All conversion happens entirely inside your browser using JavaScript. No text is ever transmitted to any server. You can use it safely with confidential code, API keys, or private notes.

Can I convert multi-line text with mixed casing?

Yes. The converter handles multi-line input for all modes. For structural formats like camelCase, PascalCase, snake_case, and kebab-case it splits each line on spaces, hyphens, underscores, and camelCase boundaries, then reassembles accordingly.

Related tools