webby.tools

Case Converter

Paste your text and convert it to any case instantly. Useful for writing, coding, formatting data, and fixing copy-paste text that arrives in the wrong case.

Case Formats Explained

UPPER CASE

Every letter is capitalised. Used for headings, acronyms, shouting on the internet, and constants in many programming languages (MAX_VALUE).

lower case

Every letter is lowercase. Common for URL slugs, email addresses, and normalising text before processing it programmatically.

Title Case

The first letter of each significant word is capitalised. Used for headings, article titles, book titles, and page titles. Small words like "a", "an", "the", "and", "or", "but", "in", "on", "at", "to", and "for" are kept lowercase unless they start the title.

Sentence case

Only the first letter of the first word in each sentence is capitalised, along with proper nouns. This is standard for body text in English.

camelCase

Words are joined with no spaces; the first word is entirely lowercase and each subsequent word starts with a capital letter. Standard in JavaScript, Java, and many other languages for variable and function names (getUserName, fetchApiData).

PascalCase

Like camelCase but the first word is also capitalised. Standard for class names in most object-oriented languages (UserProfile, ApiResponse).

snake_case

Words are joined with underscores and all letters are lowercase. Standard in Python for variables and function names (user_name, fetch_api_data), and common in database column names.

SCREAMING_SNAKE_CASE

snake_case with all letters uppercase. Standard for constants in many languages (MAX_RETRY_COUNT, API_BASE_URL).

kebab-case

Words are joined with hyphens and all letters are lowercase. Standard for URL slugs, CSS class names, HTML attributes, and file names (user-profile, main-navigation).

dot.case

Words are joined with periods. Used in configuration keys, package names, and some programming contexts (config.database.host).

aLtErNaTiNg cAsE

Letters alternate between lowercase and uppercase. Mostly used for mocking tone in internet culture — the "spongebob mocking" meme format.

iNVERSE cAsE

The case of every letter is flipped — lowercase becomes uppercase and vice versa.

Frequently Asked Questions

What's the difference between Title Case and Sentence case?
Title case capitalises the first letter of most words. Sentence case only capitalises the first word of each sentence (and proper nouns). "The Quick Brown Fox Jumps Over the Lazy Dog" is title case. "The quick brown fox jumps over the lazy dog" is sentence case.

Which case should I use for variable names?
It depends on the language: camelCase for JavaScript/Java variables and functions, PascalCase for classes in most languages, snake_case for Python variables and functions, SCREAMING_SNAKE_CASE for constants. Check the style guide for the language or framework you're using.

Which case should I use for URLs?
kebab-case is the standard for URLs. Google recommends it over snake_case because hyphens are treated as word separators by search engines, while underscores are not always. my-page-title is better for SEO than my_page_title.

What about CSS class names?
kebab-case is the convention for CSS and HTML class names (btn-primary, nav-item). BEM (Block Element Modifier) methodology uses a variation: block__element--modifier.

Related Tools

Icons from Creative Fabrica

This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.