Convert Text Between Different Case Formats
A powerful tool for converting text between various case formats including camelCase, snake_case, kebab-case, and more. Features include text analysis, conversion history, and custom pattern support.
The Case Converter tool provides instant text conversion between multiple case formats. Whether you're a developer needing code-friendly naming conventions or a writer formatting text, this tool makes case conversion effortless.
Tip: The tool processes your text in real-time as you type, with a slight debounce for optimal performance.
The input section allows you to enter or paste text for conversion. Multiple input options and controls are available to customize your conversion workflow.
Click the sample button to load example text and see the tool in action immediately.
Enable this option to process each line separately while maintaining line breaks in the output.
Use the dropdown to select and view only specific case formats, useful when you need one particular format.
The tool supports over 20 different case formats organized into four categories. Each format has specific use cases and conventions.
Converts text to sentence case with first letter capitalized.
hello world -> Hello worldConverts all characters to lowercase.
HELLO WORLD -> hello worldConverts all characters to uppercase.
hello world -> HELLO WORLDCapitalizes the first letter of each word.
hello world -> Hello WorldFirst word lowercase, subsequent words capitalized. No separators.
hello world -> helloWorldEach word capitalized, no separators. Common in class names.
hello world -> HelloWorldAll lowercase with underscores separating words.
hello world -> hello_worldAll lowercase with hyphens separating words. Common in URLs and CSS.
hello world -> hello-worldAll uppercase with underscores. Common for constants.
hello world -> HELLO_WORLDAll lowercase with dots separating words.
hello world -> hello.worldAll lowercase with forward slashes separating words.
hello world -> hello/worldCapitalized words with hyphens. Common in HTTP headers.
hello world -> Hello-WorldSimilar to Header-Case, each word capitalized with hyphens.
hello world -> Hello-WorldUsed in HTTP headers and MIME types.
content type -> Content-TypeOnly the first character lowercase.
Hello -> helloOnly the first character uppercase.
hello -> HelloRemoves leading and trailing whitespace.
hello -> helloCreates URL-friendly slugs, lowercase with hyphens.
Hello World! -> hello-worldRemoves all whitespace characters.
hello world -> helloworldKeeps only alphabetic characters.
hello123 -> helloKeeps only numeric characters.
hello123 -> 123Keeps only letters and numbers.
hello@123! -> hello123Randomly alternates between upper and lowercase.
hello -> hElLoReverses all characters in the text.
hello -> ollehSwaps uppercase to lowercase and vice versa.
Hello -> hELLOApplies ROT13 encryption, rotating letters by 13 positions.
hello -> urrybRemoves accent marks and diacritical marks.
café -> cafeConverts letters to leet speak numbers (e.g., E→3, A→4).
hello -> h3ll0The tool automatically analyzes your input text and displays useful statistics. This helps you understand the content you're working with and verify your text before conversion.
Total character count including spaces
Number of words separated by whitespace
Number of lines in the text
Number of sentences based on punctuation
Tip: Text analysis updates in real-time as you type, helping you catch issues early in your workflow.
The tool maintains a history of your recent conversions, allowing you to quickly revisit previous transformations without re-entering text.
Note: History is stored locally in your browser and persists across sessions. Clearing browser data will remove the history.
Batch Mode allows you to convert multiple lines of text simultaneously. This is particularly useful when you need to convert lists of items, database column names, or any collection of strings at once.
Tip: Batch Mode is perfect for converting database column names, API field names, or any list of identifiers in one go.
Input:
hello world
foo bar
baz qux
test itemOutput (camelCase):
helloWorld
fooBar
bazQux
testItemThe tool automatically detects the case format of your input text and displays it with a confidence score. This helps you quickly identify what format your text is currently in.
Capitalized words with no separators, first letter uppercase
HelloWorldCapitalized words with no separators, first letter lowercase
helloWorldLowercase with underscores
hello_worldLowercase with hyphens
hello-worldUppercase with underscores
HELLO_WORLDFirst letter of each word capitalized
Hello WorldLowercase with dots
hello.worldLowercase with slashes (like file paths)
hello/worldCapitalized words with hyphens
Hello-WorldNote: Case detection shows a confidence score to help you understand how certain the detection is. Some text may match multiple patterns.
Beyond standard case conversions, the tool offers advanced options for power users and specific use cases.
Apply custom regex patterns or string replacements to your text. Supports two formats:
/pattern/flags - Regex format with optional flags (g, i, m, etc.)search--replace - Simple string replacementCopy or download all conversions at once:
/[0-9]/gRemoves all digits using regex
hello->worldReplaces all occurrences of "hello" with "world"
/<[^>]*>/gRemoves all HTML tags using regex
Multiple export methods are available to get your converted text out of the tool and into your projects.
Click the copy icon next to any result to copy just that format.
Copies all case conversions to clipboard in a formatted list.
Downloads all conversions as a text file (case_conversions.txt).
Sentence case:
Hello world example
lower case:
hello world example
UPPER CASE:
HELLO WORLD EXAMPLE
camelCase:
helloWorldExample
snake_case:
hello_world_example
kebab-case:
hello-world-exampleConvert natural language to programming-friendly formats like camelCase, snake_case, or PascalCase for variable and function names.
Standardize database column names using snake_case or CONSTANT_CASE conventions for better consistency.
Create SEO-friendly URL slugs using kebab-case format for clean, readable web addresses.
Generate BEM-style or kebab-case class names for your CSS stylesheets and components.
Quickly convert text to sentence case, title case, or uppercase for documents and content creation.
Use advanced features like stripping diacritics or removing specific characters to clean data.
Step-by-step guides for common tasks using the Case Converter tool.
Learn how to convert natural language descriptions to database-friendly snake_case or CONSTANT_CASE column names.
Enter the column description
Type something like "User First Name" or "created at date"
View the results
Scroll to find snake_case or CONSTANT_CASE in the results
Copy the result
Click the copy icon next to your chosen format
Example: "User First Name" → "user_first_name" or "USER_FIRST_NAME"
Learn how to create search-engine-friendly URL slugs from article titles or page names.
Enter your title
Type your article title, e.g., "10 Tips for Better JavaScript"
Find the Slugify format
Look for "Slugify" in the Advanced tab or filter
Copy and use
Copy the result for your URL: /blog/10-tips-for-better-javascript
Tip: The Slugify format automatically removes special characters and replaces spaces with hyphens.
Learn how to convert multiple API endpoint names from one format to another using Batch Mode.
Switch to Batch Mode
Click the "Batch" button in the input panel
Enter your endpoints
Type each endpoint on a new line:get all userscreate new postupdate user profile
View all conversions
See all endpoints converted to camelCase, snake_case, or kebab-case
Export results
Use "Copy All" or "Download All" to get your converted endpoints
Learn how to use advanced features to clean and process text data.
[0-9] to remove all digitshello->hi to replace "hello" with "hi"/[^a-zA-Z]/g to remove all non-letter charactersLearn how to use regex patterns to extract or manipulate specific parts of your text.
[0-9]+Extract all digit sequences from text
[a-zA-Z]+Extract all letter sequences
^http(s)?://Remove URL protocol (http:// or https://)
\s+Replace all whitespace with single space
->Use search->replace format for simple text replacement
Learn how to use the Case Detection feature to identify what format your text is currently in.
Enter your text
Paste or type text in any case format
Check the detection result
Look for the detected case indicator showing the format name and confidence level
Convert to another format
Use the filter dropdown to select a different format and copy the result
Note: The confidence score helps you understand how reliable the detection is. Some text may match multiple patterns.