Convert Text Case Instantly

Transform text between camelCase, PascalCase, snake_case, kebab-case and more. Perfect for developers and writers.

Quick Examples

camelCase
"hello world""helloWorld"
PascalCase
"hello world""HelloWorld"
snake_case
"hello world""hello_world"
kebab-case
"hello world""hello-world"
CONSTANT_CASE
"hello world""HELLO_WORLD"
Title Case
"hello world""Hello World"

Why Use Case Conversion?

🚀 Consistency in Code

Maintain consistent naming conventions across your entire codebase. Different languages and frameworks have different standards - convert with confidence.

⚡ Save Time

Stop manually retyping variable names. Convert between formats instantly when working with APIs, databases, or switching between languages.

✅ Avoid Errors

Eliminate typos and inconsistencies that come from manual conversion. Perfect for refactoring and migrating code between different systems.

🔒 100% Secure & Private

Your data never leaves your browser. All conversions happen locally on your device with no server communication, ensuring complete privacy and security.

📚 Documentation

Convert technical terms to Title Case for documentation headers, or to kebab-case for URL-friendly slugs in your docs.

🌍 Cross-Platform

Work seamlessly across different platforms and languages. Convert Python snake_case to JavaScript camelCase when porting code.

Case Type Comparison Guide

Case TypeExamplePrimary Use
camelCasehelloWorldVariable names
PascalCaseHelloWorldClass names
snake_casehello_worldPython everything
kebab-casehello-worldURL slugs
CONSTANT_CASEHELLO_WORLDConfiguration constants
Title CaseHello WorldArticle titles
Sentence caseHello worldError messages

Complete Guide to Case Types

camelCase

First word lowercase, subsequent words capitalized, no spaces or punctuation.

When to Use:

  • JavaScript variable and function names
  • Java method names
  • TypeScript properties

Code Example:

const userName = "John Doe";
Languages:JavaScriptTypeScriptJavaSwiftKotlinDart

PascalCase

Every word capitalized, no spaces or punctuation. Also known as UpperCamelCase.

When to Use:

  • Class names in most languages
  • Constructor functions
  • React component names

Code Example:

class UserProfile { ... }
Languages:C#JavaTypeScriptC++Python (classes)React

snake_case

All lowercase with underscores between words.

When to Use:

  • Python variables and functions
  • Ruby methods and variables
  • Rust function and variable names

Code Example:

user_email = request.get("email")
Languages:PythonRubyRustPHPSQLC/C++

kebab-case

All lowercase with hyphens between words. Also called dash-case or lisp-case.

When to Use:

  • URL slugs and paths
  • CSS class names
  • HTML attributes

Code Example:

<button class="primary-button">Click</button>
Languages:CSSHTMLURLsnpmKubernetesDocker

CONSTANT_CASE

All uppercase with underscores between words. Also known as SCREAMING_SNAKE_CASE.

When to Use:

  • Constants in any language
  • Environment variables
  • Configuration constants

Code Example:

const API_KEY = process.env.API_KEY;
Languages:All languagesBashJavaScriptPythonJavaC/C++

Case Conventions by Programming Language

JavaScript/TypeScript

camelCase
PascalCase
CONSTANT_CASE

Python

snake_case
CONSTANT_CASE
PascalCase

Java

camelCase
PascalCase
CONSTANT_CASE

C#/.NET

PascalCase
camelCase
CONSTANT_CASE

Ruby

snake_case
PascalCase
CONSTANT_CASE

Go

camelCase
PascalCase

Rust

snake_case
PascalCase
CONSTANT_CASE

PHP

snake_case
camelCase
PascalCase
CONSTANT_CASE

Swift

camelCase
PascalCase
CONSTANT_CASE