consolelog.tools

Case Converter

Convert text to camelCase, snake_case, kebab-case, and more. Supports 13 different case formats with smart detection.

About this ToolHow it works, benefits & use cases

Renaming a variable or normalizing a list of identifiers usually means retyping the same words in a different shape. The Case Converter does it in one pass: type or paste any text, hit Convert, and it produces all 13 case formats at once — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, SCREAMING-KEBAB-CASE, Train-Case, Title Case, Sentence case, lower case, and UPPER CASE. It splits words intelligently, so it reads existing camelCase, snake_case, hyphenated, and space-separated input correctly (including separating numbers from letters) before reformatting. It also detects the case your input is already in and labels it. Each result has its own copy button and a character count, so you grab exactly the format you need. Everything runs in your browser — no upload, no sign-up.

How to Use

  1. 1Type or paste your text into the input box — a single word, an identifier, or a short phrase.
  2. 2Watch the "Detected" badge, which tells you what case the tool thinks your input is currently in.
  3. 3Click "Convert to all cases" (or press Cmd/Ctrl + Enter) to generate all 13 formats at once.
  4. 4Scan the result cards — each shows the format name, a short description, a typical use case, and a character count.
  5. 5Click the copy icon on the card for the exact format you need; the format matching your input is highlighted as "Current".

Key Benefits

  • Generates all 13 case formats from one input in a single click
  • Smart word splitting reads existing camelCase, snake_case, kebab-case, dotted, and spaced input
  • Separates numbers from letters so identifiers like html5Parser split cleanly
  • Auto-detects and labels the case your input is already in
  • Per-format copy buttons and live character counts — take only what you need
  • Title Case follows real style rules, leaving small words (a, an, the, of) lowercase mid-title
  • Runs entirely in your browser with no upload or account

Common Use Cases

  • Renaming a variable from snake_case to camelCase to match a JS/TS codebase
  • Turning a feature title into a kebab-case URL slug or CSS class name
  • Producing CONSTANT_CASE names for environment variables and config keys
  • Converting a Python field to a database column or an API route path
  • Creating Train-Case or SCREAMING-KEBAB-CASE strings for HTTP headers

Enter any text — we'll convert it to all 13 case formats

Quick Reference: When to Use Each Case

camelCase

For JavaScript/TypeScript variables and functions

userName
getUserData

PascalCase

For React components and class names

UserProfile
DataTable

snake_case

For Python variables and database columns

user_name
get_user_data

kebab-case

For URLs, CSS classes, and file names

user-profile
main-content

CONSTANT_CASE

For constants and environment variables

API_KEY
MAX_USERS

Title Case

For headings and proper nouns

User Profile Page
My Application

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools