Text Case Converter — 12 Case Formats Online
Skip to main content

Text Case Converter

Convert text between 12 different cases. Handles camelCase, PascalCase, snake_case, and more.

9 words · 43 chars · 1 lines

About the Text Case Converter

Naming conventions vary by language, framework, and context — camelCase for JavaScript variables, PascalCase for React components, snake_case for Python and SQL, kebab-case for CSS and URLs. Converting between them manually is tedious and error-prone. This tool converts text between 16 case formats instantly, with batch conversion support.

Case format reference

Programming Cases

  • camelCase — JS/Java variables & functions
  • PascalCase — class names, React components
  • snake_case — Python, Ruby, SQL
  • CONSTANT_CASE — constants in most languages

Web & Content Cases

  • kebab-case — CSS classes, URL slugs, file names
  • Title Case — headings and titles
  • Sentence case — body text and descriptions
  • dot.case — config keys, i18n strings

Pipeline

  • String Escape — escape the converted text for use in JSON, HTML, or SQL.
  • Word Counter — count words in the text before converting case.

Frequently asked

Is my text sent to a server?
No. All case conversion runs 100% in your browser. Your text never leaves your device.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter and capitalizes each subsequent word (e.g. myVariableName). PascalCase (also called UpperCamelCase) capitalizes every word including the first (e.g. MyClassName). camelCase is standard for variables and functions in JavaScript/Java; PascalCase is standard for class names.
What is snake_case used for?
snake_case uses underscores between words with all lowercase letters. It is the standard naming convention in Python (variables, functions, modules), Ruby, and SQL column names. SCREAMING_SNAKE_CASE (all caps) is used for constants in most languages.
What is kebab-case used for?
kebab-case uses hyphens between words with all lowercase letters. It is the standard for CSS class names, HTML attributes, URL slugs, and file names in web projects. It cannot be used for variable names in most programming languages since hyphens are subtraction operators.
What is ROT13?
ROT13 is a simple letter substitution cipher that rotates each letter 13 positions in the alphabet. It is its own inverse — applying ROT13 twice returns the original text. It is used for hiding spoilers and puzzle answers in online communities, not for security.