String Case Converter

Convert text between different case formats

Input Text

Case Formats

Programming Formats

myVariableName

First word lowercase, subsequent words capitalized, no spaces

Common use: JavaScript/Java variables, object properties

MyClassName

All words capitalized, no spaces (Upper Camel Case)

Common use: Class names, constructors, components

my_variable_name

All lowercase with underscores between words

Common use: Python variables, database columns, file names

my-variable-name

All lowercase with hyphens between words

Common use: CSS classes, HTML attributes, URLs, file names

MY_CONSTANT_VALUE

All uppercase with underscores between words

Common use: Constants, environment variables, macros

MY-CONSTANT-VALUE

All uppercase with hyphens between words

Common use: HTTP headers, some configuration files

my.variable.name

All lowercase with dots between words

Common use: Package names, namespaces, configuration keys

Text Formats

my variable name

All characters in lowercase

Common use: Simple text processing, case-insensitive comparisons

MY VARIABLE NAME

All characters in uppercase

Common use: Headers, emphasis, legacy systems

My Variable Name

First letter of each word capitalized

Common use: Titles, headers, proper names

My variable name

First letter capitalized, rest lowercase

Common use: Sentences, descriptions, user-facing text

Special Formats

my/variable/name

All lowercase with forward slashes between words

Common use: File paths, URLs, hierarchical structures

Case Format Reference

Quick Reference

camelCaseJS variables, properties
PascalCaseClasses, constructors
snake_casePython, databases
kebab-caseCSS, URLs, files
UPPER_CASEConstants, env vars

Programming Conventions

  • JavaScript: camelCase for variables, PascalCase for classes
  • Python: snake_case for variables and functions
  • CSS: kebab-case for classes and IDs
  • Constants: UPPER_CASE in most languages
  • URLs: kebab-case for readability and SEO