How to Convert Text Case
Naming conventions vary across languages, frameworks, and contexts. Converting between them manually is tedious and error-prone. This guide shows you how to convert text between 9 case formats instantly.
When You Need Case Conversion
- Renaming a JavaScript variable (camelCase) to a database column (snake_case)
- Converting a headline to a URL slug (kebab-case)
- Generating constant names from descriptions (CONSTANT_CASE)
- Standardizing text formatting in documentation
- Creating CSS class names from component names
How to Convert Case
Step 1: Open the tool
Go to the Case Converter.
Step 2: Enter your text
Type or paste text in any format — spaces, underscores, hyphens, or camelCase. All 9 case formats appear below in real time.
Step 3: Copy the format you need
Click "Copy" on any format card. Each card shows the converted text ready to paste into your code or document.
Tips
- The tool auto-detects word boundaries, so "myVariableName", "my_variable_name", and "my variable name" all produce the same results.
- For acronyms like "XMLParser", the tool correctly splits to "XML Parser" then converts to each format.
- Need to count characters after conversion? Use the Word Counter.
FAQ
What case formats are supported?
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. All 9 formats are generated simultaneously from your input.
How does the tool detect word boundaries?
It splits on spaces, underscores, hyphens, and camelCase transitions (lowercase to uppercase). This means 'helloWorld', 'hello_world', 'hello-world', and 'hello world' all produce the same word list.
When should I use each format?
camelCase for JavaScript/TypeScript variables. PascalCase for React components and class names. snake_case for Python and database columns. kebab-case for CSS classes and URLs. CONSTANT_CASE for environment variables and constants.
Is my data uploaded to a server?
No. All conversion happens entirely in your browser using JavaScript. Your text never leaves your device.
Try It Now
Ready to convert? Open the Case Converter — it works entirely in your browser with no sign-up required.