String Case Switcher
The problem: Renaming a variable or file across conventions — from camelCase to snake_case or kebab-case — requires mental gymnastics and is error-prone under deadline.
ASG Privacy VerifiedVerified
100% In-Browser Execution. Zero server uploads. Your data never leaves this tab — disconnect your internet and the tool keeps working.
String Case Switcher: the complete guide
A string case switcher converts any text input simultaneously into all major programming naming conventions — camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case, dot.case, Sentence case, and more. Every software team uses different conventions in different layers of the stack: JavaScript variables are camelCase, React components are PascalCase, Python variables are snake_case, environment variables are SCREAMING_SNAKE_CASE, CSS classes are kebab-case, and database columns vary by dialect. When renaming a concept across the stack — say, migrating from userID to user_id to user-id to UserId — this tool generates all ten variants in one paste.
Tokenization: how mixed inputs are normalized
The core challenge is intelligently splitting an input into its semantic words regardless of how they were originally joined. The tokenizer handles all common patterns simultaneously: camelCase boundaries (userId → ['user', 'id']), underscores (user_id → ['user', 'id']), hyphens (user-id → ['user', 'id']), spaces ('user id' → ['user', 'id']), dots (user.id → ['user', 'id']), and uppercase acronyms (userIDProfile → ['user', 'ID', 'Profile']). Once tokenized into a lowercase word array, all ten formats are derived by rejoining with the appropriate separator and applying the correct casing rules for each format.
When each format is the right choice
camelCase is the dominant JavaScript variable and function convention, used in JSON keys, TypeScript interfaces and most frontend frameworks. PascalCase is universal for class names, React components and TypeScript types. snake_case dominates Python, PostgreSQL, SQLite and Ruby on Rails column names. SCREAMING_SNAKE_CASE is the universal constant convention for environment variables and configuration keys. kebab-case is the standard for CSS class names, HTML attributes, URL slugs, npm package names and CLI flags. Title Case is for headlines, navigation labels and UI headings where each word's first letter is capitalized. dot.case is common in configuration files and Java package names. Sentence case is for prose writing and error messages that should read naturally.
Step by step: how to use Case Switcher
- 1
Type or paste any text in the input field — any mix of camelCase, snake_case, spaces, hyphens or plain words.
- 2
All ten naming convention outputs appear instantly below, updating with every keystroke.
- 3
Hover any card to reveal the Copy button for that specific format.
- 4
Click the copy icon on any result to copy it to your clipboard.
- 5
Use the Example button to see how a realistic multi-word identifier converts across all formats.
Security & privacy
String conversion runs locally with pure JavaScript string operations — no data is sent anywhere. Even if your identifier encodes a product name, internal system name or confidential feature flag under development, the conversion is entirely offline after page load.