Convert any text to the exact case format you need with this free text case converter online — UPPER CASE, lower case, Sentence case, Title Case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, or dot.case — instantly in your browser, no data sent to any server.
Paste a variable name in snake_case and get camelCase back in one click. Fix ALL CAPS text accidentally left in a document. Generate slugs, environment variable names, or CSS class names without manual retyping. The converter also understands existing case formats as input, so helloWorld becomes hello-world without you needing to break it apart first.
How to Use the Case Converter
- Paste or type your text in the Input Text area.
- Click a format button — UPPER CASE, camelCase, snake_case, or any of the 10 supported formats.
- Read the converted result in the output area immediately to the right.
- Copy the output — click Copy or press Shift + Enter to copy without leaving the keyboard.
Use Shift + ← / Shift + → to cycle through all formats without touching the mouse.
Case Conventions — What Each Format Is For
Different programming ecosystems have adopted different naming conventions, and choosing the wrong one causes build errors, failed API calls, or broken imports:
camelCase and PascalCase are standard in JavaScript, TypeScript, Java, and C#. The difference: camelCase starts with a lowercase letter (myVariable), PascalCase starts with uppercase (MyClass). Use camelCase for variables and functions; PascalCase for class names and React components.
snake_case is the convention in Python, Ruby, and most relational databases. Words are separated by underscores, everything lowercase. Its sibling CONSTANT_CASE (SCREAMING_SNAKE_CASE) is used for constants and environment variable names like DATABASE_URL or API_KEY.
kebab-case uses hyphens and is standard in HTML attributes, CSS class names, URL slugs, and command-line flags (--dry-run, aria-label, user-profile).
dot.case appears in configuration file keys, Java package names, and logging frameworks (app.server.port, com.example.util).
Common Use Cases
- Renaming variables between languages: Switching a Python project to JavaScript means converting
user_first_nametouserFirstName. Paste all your names here and convert in one operation instead of editing each one by hand. - Generating URL slugs from titles: Convert a blog post title like "How to Use React Hooks" to
how-to-use-react-hooksin kebab-case for a clean, readable URL. - Creating environment variable names: Paste a human-readable description like "database connection string" and convert to CONSTANT_CASE to get
DATABASE_CONNECTION_STRING. - Fixing document capitalization: Correct text that was accidentally typed in ALL CAPS, or apply consistent Title Case to headings across a document in one paste.
- Adapting code between frameworks: When migrating between frameworks with different conventions — say from Ruby (snake_case) to JavaScript (camelCase) — convert field names in bulk.
- CSS and HTML class name generation: Convert component names from PascalCase to kebab-case for BEM-style class names or HTML attributes.
Frequently Asked Questions
Does the converter handle camelCase or snake_case input correctly?
Yes. The converter automatically detects and splits camelCase, PascalCase, snake_case, kebab-case, and dot.case input into individual words before applying the target format. So helloWorld becomes hello-world in kebab-case, and my_variable becomes myVariable in camelCase — no manual splitting required.
What is the difference between camelCase and PascalCase?
Both join multiple words without spaces or separators, capitalizing the first letter of each word. The only difference is the first word: camelCase keeps it lowercase (myVariableName), while PascalCase capitalizes it (MyVariableName). In practice, camelCase is used for variables and functions in most languages, while PascalCase is used for class names, constructors, and React components.
How do I convert a sentence to Title Case?
Select the Title Case format. Every word in the input will have its first letter capitalized and the rest lowercased. Note that this applies to all words — it does not follow style guide rules about skipping short prepositions or articles (like "a", "the", "of"). For strict editorial Title Case, manual review is still needed.
Can I convert multiple lines at once?
Yes. The tool processes the entire content of the input area, including multiple lines. Line breaks are preserved in UPPER, lower, Sentence, and Title Case. For programmatic formats like camelCase and snake_case, newlines are treated as word boundaries, so each line is converted independently.
What happens to numbers and special characters in the text?
Numbers are treated as regular word characters and preserved in output. Special characters like !, @, and # are stripped when converting to programmatic formats (camelCase, snake_case, etc.) since those formats don't support them in identifiers. They are preserved in UPPER, lower, Sentence, and Title Case conversions.