🔡 Text Case Converter
Convert text to any case format instantly — camelCase, snake_case, UPPER, and more
Advertisement · 728×90
Paste or type your text
Characters: 0
Words: 0
Lines: 0
Result
Converted text will appear here…

Case Format Reference

Format Example Common Use
UPPER CASE HELLO WORLD Acronyms, emphasis, constants
lower case hello world General writing, URLs
Title Case Hello World Headings, book titles, proper nouns
Sentence case Hello world. Normal sentences, paragraphs
camelCase helloWorld JavaScript variables & functions
PascalCase HelloWorld Class names (JS, C#, Java)
snake_case hello_world Python variables, file names, SQL
kebab-case hello-world CSS classes, HTML attributes, URLs
SCREAMING_SNAKE HELLO_WORLD Constants in most languages
dot.case hello.world Config keys, package names
aLtErNaTiNg hElLo WoRlD Memes, sarcasm

What Is Text Case?

Text case refers to the capitalization pattern used for letters in a word or phrase. Different programming languages, writing styles, and platforms have strong conventions around which case to use — and mixing them up causes bugs, style guide violations, or simply looks unprofessional.

Which Case Should I Use in Code?

JavaScript: camelCase for variables and functions; PascalCase for classes; SCREAMING_SNAKE_CASE for constants.

Python: snake_case for variables, functions, and file names; PascalCase for classes; UPPER_SNAKE_CASE for constants.

CSS: kebab-case for class names and custom properties.

SQL: snake_case for column and table names (conventional, though not enforced).

URLs and file names: kebab-case is SEO-friendly and universally supported.

Frequently Asked Questions

What is camelCase?

camelCase is a naming convention where the first word is lowercase and each subsequent word starts with a capital letter, with no spaces or separators. Example: helloWorld. It is widely used for variables and functions in JavaScript, TypeScript, and Java.

What is snake_case?

snake_case is a naming convention where all words are lowercase and separated by underscores. Example: hello_world. It is the standard convention for variable and function names in Python, as well as SQL column and table names. It is also common in Ruby and Rust.

What is the difference between camelCase and PascalCase?

In camelCase the first word is lowercase (helloWorld), while in PascalCase every word — including the first — starts with a capital letter (HelloWorld). PascalCase is typically used for class names in JavaScript, C#, TypeScript, and Java. Both formats use no spaces or separators between words.

What case should I use for CSS class names?

CSS class names and custom properties conventionally use kebab-case, where words are separated by hyphens. Example: my-button-class. Hyphens are also the SEO-friendly separator for URLs — Google treats hyphens as word separators, which helps with search ranking.

What naming convention should Python developers use?

Python developers should use snake_case for variables, functions, and file names; PascalCase for class names; and UPPER_SNAKE_CASE (also called SCREAMING_SNAKE_CASE) for constants. These conventions follow the PEP 8 style guide, which is the official Python coding standard.

What is kebab-case?

kebab-case (also called spinal-case or lisp-case) uses all lowercase letters with hyphens between words. Example: my-variable-name. It is used in CSS class names, HTML attributes, URL slugs, and config file keys. The name comes from the letters looking like chunks on a kebab skewer.