Case Converter
Convert text between camelCase, snake_case, kebab-case, and 10+ formats
Input Text
Converted Results
Related Tools
Email Extractor
Extract email addresses from large blocks of text effortlessly
Emoji Picker
Browse, search, and copy emojis from a complete collection
QR Code Generator
Generate QR codes for URLs, text, contact info, WiFi, and more
Invisible Character Detector
Find and remove invisible characters, zero-width spaces, and hidden controls
Add Line Numbers
Add line numbers to your text or code snippets automatically
Lorem Ipsum Generator
Generate placeholder text for designs with custom paragraph, word, or character counts
What is Case Conversion?
Case conversion transforms text between different capitalization and formatting styles. Different programming languages, file systems, and naming conventions use different case styles—camelCase for JavaScript variables, snake_case for Python, kebab-case for URLs, and more.
This free online case converter instantly transforms your text into 10+ different formats. Whether you're refactoring code, creating consistent naming conventions, or formatting content, this tool makes it effortless to convert between cases with a single click.
Common Case Styles Explained
camelCase
myVariableNameFirst word lowercase, subsequent words capitalized. Standard in JavaScript, Java, TypeScript, and C# for variables and functions.
PascalCase
MyVariableNameEvery word capitalized. Used for class names in most languages, React components, and C# methods.
snake_case
my_variable_nameWords separated by underscores. Standard in Python, Ruby, PHP, and SQL database columns.
kebab-case
my-variable-nameWords separated by hyphens. Used in URLs, CSS class names, HTML attributes, and npm packages.
CONSTANT_CASE
MY_VARIABLE_NAMEAll uppercase with underscores. Used for constants, environment variables, and configuration keys.
Case Conventions by Language
| Language | Variables | Functions | Classes | Constants |
|---|---|---|---|---|
| JavaScript | camelCase | camelCase | PascalCase | CONSTANT_CASE |
| Python | snake_case | snake_case | PascalCase | CONSTANT_CASE |
| CSS | kebab-case | — | kebab-case | — |
| Go | camelCase | camelCase | PascalCase | MixedCase |
Common Use Cases
Code Refactoring
Convert between naming conventions when migrating code between languages or standardizing a codebase.
URL Slug Creation
Convert titles to kebab-case for SEO-friendly URLs and file paths.
Database Columns
Convert field names between API responses (camelCase) and database columns (snake_case).
Environment Variables
Convert configuration keys to CONSTANT_CASE for .env files and system variables.
Frequently Asked Questions
What's the difference between camelCase and PascalCase?
Both capitalize word boundaries. camelCase starts with lowercase (userName), while PascalCase starts with uppercase (UserName). Use PascalCase for classes, camelCase for variables.
Why is kebab-case preferred for URLs?
Hyphens are treated as word separators by search engines, improving SEO. Underscores in URLs are often treated as part of the word.
Can I convert multiple lines at once?
Yes! Paste multiple lines and the conversion applies to all text. Each word boundary is detected and converted accordingly.
