🔡

Text Case Converter

Convert text instantly to 15 different case formats. Great for code, APIs, filenames, CSS classes and more.

Input Text
All Case Formats

About the Text Case Converter

Different programming languages, frameworks and contexts have different naming conventions. JavaScript uses camelCase for variables, Python uses snake_case, C# uses PascalCase for classes, CSS uses kebab-case for class names, SQL uses SCREAMING_SNAKE_CASE for constants and URLs use kebab-case for slugs. This tool converts any input text into all 15 formats simultaneously so you can copy the one you need without manually applying transformation rules.

The tool handles multi-word input intelligently by splitting on spaces, punctuation and existing case boundaries. So you can paste a sentence, a function name in any format, or a mixed string and get clean output in all formats immediately. All conversions update in real time as you type.

Case Format Reference

  • camelCase. JavaScript variables, JSON keys, Java methods. First word lowercase, each subsequent word capitalised with no separator.
  • 🐍
    snake_case. Python variables and functions, Ruby, SQL column names, C constants. All lowercase with underscores.
  • 🎯
    PascalCase. C# classes, TypeScript interfaces, React components. Every word capitalised with no separator.
  • 🔗
    kebab-case. CSS class names, HTML attributes, URL slugs, npm package names. All lowercase with hyphens.
  • 📢
    SCREAMING_SNAKE_CASE. Constants in Python, Java, C. All uppercase with underscores.

Frequently Asked Questions

How does the converter handle existing case formats?
The converter splits input on spaces, punctuation and case boundaries. So inputting getUserName, get_user_name or Get User Name all produce the same set of outputs. This means you can paste a variable from any codebase and convert it to any other convention instantly.
Does it handle numbers in names?
Yes. Numbers are treated as word boundaries in most cases. So user2Factor becomes user-2-factor in kebab-case and User2Factor in PascalCase. The exact behaviour matches common convention in most major languages.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every word. Sentence case only capitalises the first letter of the first word and leaves the rest lowercase, matching standard English sentence formatting.