AppDevTools
AppDevTools
/
Text Tools
Case Converter

Case Converter

client

Documentation

What is lowercase?

Lowercase is a typeface of small letters which is opposed to uppercase or capital letters abbreviated as LC. Lowercase is the default letter case used when typing unless the shift key is pressed or the caps lock key is on.

For instance, a is the lowercase of A, b is the lowercase of B, c is the lowercase of C, and so on.

In computer programming, there exists the toLowerCase method or something similar for converting a string to lowercase in most programming languages. For example, the code below demonstrates how to convert a string to lowercase in JavaScript.

const str = 'Case Converter';

console.log(str.toLowerCase()); // case converter

What is uppercase?

Uppercase is a typeface of capital letters which is opposed to lowercase or small letters abbreviated as UC. Uppercase can be toggled by pressing the shift key or activating the caps lock key.

For example, A is the uppercase of a, B is the uppercase of b, C is the uppercase of c, and so on.

Similar to lowercase, the method for converting a string to uppercase is also provided in most programming languages. The following example shows how to convert a string to uppercase in JavaScript using the built-in toUpperCase method.

const str = 'Case Converter';

console.log(str.toUpperCase()); // CASE CONVERTER

What is camel case?

Camel case is a naming convention that the first letter of each word is capitalized except for the first one with no spaces in between. In computer programming, camel case is often used for naming variables and functions.

For instance, Add User becomes addUser, Validate Email becomes validateEmail, and Last Visited becomes lastVisited when converted to camel case.

This is an example of a naming convention that uses camel case to name variables and functions in JavaScript.

function getFullName(firstName, lastName) {
  const fullName = `${firstName} ${lastName}`;

  return fullName;
}

What is pascal case?

Pascal case is a naming convention that every word is capitalized with no spaces in between. Pascal case is a type of camel case and mostly used for naming classes and constructors in programming.

For example, Mobile Phone becomes MobilePhone, Post Button becomes PostButton, and Animal becomes Animal when converted to pascal case.

The code below is an example of naming classes and constructors in pascal case.

class CaseConverter {
  // Properties and methods of the CaseConverter class go here.
}

const caseConverter = new CaseConverter();

What is constant case?

Constant case is a naming convention that every word is capitalized and split by an underscore _ with no spaces in between. Constant case is mostly used in programming for naming constant variables that their values will never change also known as screaming snake case.

For instance, Min Length becomes MIN_LENGTH, Max File Size becomes MAX_FILE_SIZE, and Port becomes PORT when converted to constant case.

The following demonstrates the use of constant case for naming constant variables in JavaScript.

const MIN_PASSWORD_LENGTH = 8;
const PATH_SEPARATOR = ':';
const PORT = 3000;
const DEV = process.env.NODE_ENV !== 'production';

What is param case?

Param case is a naming convention that all the words are in lowercase and split by a dash - with no spaces in between also known as kebab case. Param case is mostly used for naming URL slugs as it's easy to read for both humans and bots and good for SEO as well as CSS properties, file names, and more.

For example, Login Button becomes login-button, How to Pet Cats becomes how-to-pet-cats, and To-Do List becomes to-do-list when converted to param case.

The following is the URL of this page that the slug is in param case; i.e. case-converter.

https://www.appdevtools.com/case-converter

What is snake case?

Snake case is a naming convention that all the words are in lowercase and split by an underscore _ with no spaces in between. Snake case is often used for naming variables in programming just like camel case depending on the preference.

For instance, Country Name becomes country_name, IP Address becomes ip_address, and Creation Date becomes creation_date when converted to snake case.

The following is an example of naming variables in snake case in JavaScript.

const first_name = 'Case';
const last_name = 'Converter';
const full_name = `${first_name} ${last_name}`;

console.log(full_name); // Case Converter

Related Tools

String Utilities

Counts the number of characters, words, lines, and substrings, converts a string to lowercase, uppercase, reverses a string, or splits a string with a separator.

Sort Lines

Sorts lines alphanumerically and/or case-insensitively, reverses lines, shuffles lines, or adds line numbers to text with your preferred EOL for both UNIX and Windows.

Diff Checker

Compares text to find the differences between two text documents instantly with syntax highlighting. Supports over 170 programming languages.

Text Editor

Views and edits text or code with syntax highlighting and saves it into a file. Supports over 170 programming languages.

JSON Editor

Views, edits, and formats JSON data instantly with syntax highlighting and saves it into a file including JSON Viewer for in-depth JSON data inspection.

Lorem Ipsum Generator

Generates Lorem Ipsum as known as placeholder text in paragraphs, sentences, or words instantly. Supports both plain text and HTML.

URL Parser / Query String Splitter

Instantly parses a URL and splits a query string into individual components, such as protocol, path, host, port, username, password, and more.

Slug Generator

Instantly slugifies words or text to an SEO-friendly and human-readable URL slug for better SEO optimization.

HTML Stripper

Completely strips all the HTML tags from HTML code. Only text content inside the stripped HTML tags will remain. Supports optional allowed tags.

Pastebin

Pastes text or code for online public viewing via a share link with syntax highlighting and an optional expiration period. Supports over 170 programming languages.

Share