Case Converter

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.

20+ Case FormatsReal-Time ConversionText Analysis

Getting Started

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.

Quick Start Steps:

  1. Enter or paste your text in the Input Text area
  2. View all converted cases instantly in the Converted Cases panel
  3. Use the tabs (All, Popular, Coding, Advanced) to filter case types
  4. Click the copy or download icon on any result
  5. Use the Copy All or Download All buttons for bulk export

Tip: The tool processes your text in real-time as you type, with a slight debounce for optimal performance.

Input Text

The input section allows you to enter or paste text for conversion. Multiple input options and controls are available to customize your conversion workflow.

Sample Text

Click the sample button to load example text and see the tool in action immediately.

Preserve Newlines

Enable this option to process each line separately while maintaining line breaks in the output.

Filter Conversions

Use the dropdown to select and view only specific case formats, useful when you need one particular format.

Input Controls:

  • History: View and restore previous conversions
  • Sample: Load example text for testing
  • Clear: Reset the input and all results
  • Preserve Newlines: Process text line by line
  • Filter Dropdown: Show only specific case types

Case Formats

The tool supports over 20 different case formats organized into four categories. Each format has specific use cases and conventions.

Popular Formats:

Sentence case

Converts text to sentence case with first letter capitalized.

hello world -> Hello world

lower case

Converts all characters to lowercase.

HELLO WORLD -> hello world

UPPER CASE

Converts all characters to uppercase.

hello world -> HELLO WORLD

Title Case

Capitalizes the first letter of each word.

hello world -> Hello World

Programming Formats:

camelCase

First word lowercase, subsequent words capitalized. No separators.

hello world -> helloWorld

PascalCase

Each word capitalized, no separators. Common in class names.

hello world -> HelloWorld

snake_case

All lowercase with underscores separating words.

hello world -> hello_world

kebab-case

All lowercase with hyphens separating words. Common in URLs and CSS.

hello world -> hello-world

CONSTANT_CASE

All uppercase with underscores. Common for constants.

hello world -> HELLO_WORLD

dot.case

All lowercase with dots separating words.

hello world -> hello.world

Additional Programming Formats:

path/case

All lowercase with forward slashes separating words.

hello world -> hello/world

Header-Case

Capitalized words with hyphens. Common in HTTP headers.

hello world -> Hello-World

Train-Case

Similar to Header-Case, each word capitalized with hyphens.

hello world -> Hello-World

Http-Case

Used in HTTP headers and MIME types.

content type -> Content-Type

Lower-First

Only the first character lowercase.

Hello -> hello

Upper-First

Only the first character uppercase.

hello -> Hello

Text Processing Formats:

Trim Case

Removes leading and trailing whitespace.

hello -> hello

Slugify

Creates URL-friendly slugs, lowercase with hyphens.

Hello World! -> hello-world

Remove Whitespace

Removes all whitespace characters.

hello world -> helloworld

Only Letters

Keeps only alphabetic characters.

hello123 -> hello

Only Numbers

Keeps only numeric characters.

hello123 -> 123

Only Alphanumeric

Keeps only letters and numbers.

hello@123! -> hello123

Fun & Utility Formats:

SpongeBob Case

Randomly alternates between upper and lowercase.

hello -> hElLo

Reverse Text

Reverses all characters in the text.

hello -> olleh

Invert Case

Swaps uppercase to lowercase and vice versa.

Hello -> hELLO

ROT13 Cipher

Applies ROT13 encryption, rotating letters by 13 positions.

hello -> urryb

Strip Diacritics

Removes accent marks and diacritical marks.

café -> cafe

To Leet Speak

Converts letters to leet speak numbers (e.g., E→3, A→4).

hello -> h3ll0

Text Analysis

The 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.

Characters

Total character count including spaces

Words

Number of words separated by whitespace

Lines

Number of lines in the text

Sentences

Number of sentences based on punctuation

Tip: Text analysis updates in real-time as you type, helping you catch issues early in your workflow.

Conversion History

The tool maintains a history of your recent conversions, allowing you to quickly revisit previous transformations without re-entering text.

History Features:

  • View History: Click the History button to expand the history panel
  • Restore: Click any history item to restore that conversion
  • Storage: Stores up to 10 recent conversions
  • Timestamp: Each entry shows the time of conversion

Note: History is stored locally in your browser and persists across sessions. Clearing browser data will remove the history.

Batch Mode

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.

How to Use Batch Mode:

  1. Click the Batch button in the input panel to switch to Batch Mode
  2. Enter multiple lines of text, with each item on a new line
  3. The tool will process each line independently and display all conversions for each input
  4. Results are displayed in a table format showing the original text and all converted versions

Tip: Batch Mode is perfect for converting database column names, API field names, or any list of identifiers in one go.

Batch Mode Example:

Input:

hello world
foo bar
baz qux
test item

Output (camelCase):

helloWorld
fooBar
bazQux
testItem

Case Detection

The 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.

Supported Detected Cases:

PascalCase

Capitalized words with no separators, first letter uppercase

HelloWorld

camelCase

Capitalized words with no separators, first letter lowercase

helloWorld

snake_case

Lowercase with underscores

hello_world

kebab-case

Lowercase with hyphens

hello-world

CONSTANT_CASE

Uppercase with underscores

HELLO_WORLD

Title Case

First letter of each word capitalized

Hello World

dot.case

Lowercase with dots

hello.world

path/case

Lowercase with slashes (like file paths)

hello/world

Header-Case

Capitalized words with hyphens

Hello-World

Note: Case detection shows a confidence score to help you understand how certain the detection is. Some text may match multiple patterns.

Advanced Features

Beyond standard case conversions, the tool offers advanced options for power users and specific use cases.

Custom Pattern

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 replacement

Bulk Operations

Copy or download all conversions at once:

  • Copy All: Copies all results to clipboard
  • Download All: Downloads results as a text file

Custom Pattern Examples:

/[0-9]/g

Removes all digits using regex

hello->world

Replaces all occurrences of "hello" with "world"

/<[^>]*>/g

Removes all HTML tags using regex

Export Options

Multiple export methods are available to get your converted text out of the tool and into your projects.

Copy Individual Result

Click the copy icon next to any result to copy just that format.

Copy All

Copies all case conversions to clipboard in a formatted list.

Download All

Downloads all conversions as a text file (case_conversions.txt).

Example Output Format:

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-example

Common Use Cases

Code Variable Naming

Convert natural language to programming-friendly formats like camelCase, snake_case, or PascalCase for variable and function names.

Database Column Names

Standardize database column names using snake_case or CONSTANT_CASE conventions for better consistency.

URL Slugs

Create SEO-friendly URL slugs using kebab-case format for clean, readable web addresses.

CSS Class Names

Generate BEM-style or kebab-case class names for your CSS stylesheets and components.

Content Formatting

Quickly convert text to sentence case, title case, or uppercase for documents and content creation.

Data Cleaning

Use advanced features like stripping diacritics or removing specific characters to clean data.

Tutorials

Step-by-step guides for common tasks using the Case Converter tool.

Tutorial 1: Converting Database Column Names

Learn how to convert natural language descriptions to database-friendly snake_case or CONSTANT_CASE column names.

1

Enter the column description

Type something like "User First Name" or "created at date"

2

View the results

Scroll to find snake_case or CONSTANT_CASE in the results

3

Copy the result

Click the copy icon next to your chosen format

Example: "User First Name" → "user_first_name" or "USER_FIRST_NAME"

Tutorial 2: Creating URL Slugs for SEO

Learn how to create search-engine-friendly URL slugs from article titles or page names.

1

Enter your title

Type your article title, e.g., "10 Tips for Better JavaScript"

2

Find the Slugify format

Look for "Slugify" in the Advanced tab or filter

3

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.

Tutorial 3: Batch Converting API Endpoints

Learn how to convert multiple API endpoint names from one format to another using Batch Mode.

1

Switch to Batch Mode

Click the "Batch" button in the input panel

2

Enter your endpoints

Type each endpoint on a new line:
get all users
create new post
update user profile

3

View all conversions

See all endpoints converted to camelCase, snake_case, or kebab-case

4

Export results

Use "Copy All" or "Download All" to get your converted endpoints

Tutorial 4: Cleaning Data with Advanced Features

Learn how to use advanced features to clean and process text data.

Removing Special Characters:

  1. Enter text with special characters
  2. Use "Only Alphanumeric" to keep only letters and numbers

Extracting Numbers from Text:

  1. Enter text containing numbers (e.g., "Order #12345")
  2. Select "Only Numbers" to extract just the digits

Removing Accents from International Text:

  1. Enter text with accented characters (e.g., "Café résumé")
  2. Select "Strip Diacritics" to get plain ASCII (e.g., "Cafe resume")

Using Custom Patterns:

  1. Enter your text
  2. Use the custom pattern input with formats like:
  3. [0-9] to remove all digits
  4. hello->hi to replace "hello" with "hi"
  5. /[^a-zA-Z]/g to remove all non-letter characters

Tutorial 5: Using Custom Patterns for Data Extraction

Learn how to use regex patterns to extract or manipulate specific parts of your text.

Pattern Examples:

[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

Tutorial 6: Identifying Unknown Case Formats

Learn how to use the Case Detection feature to identify what format your text is currently in.

1

Enter your text

Paste or type text in any case format

2

Check the detection result

Look for the detected case indicator showing the format name and confidence level

3

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.

Related Tools