Case Converter
Convert text between camelCase, snake_case, kebab-case, and more
Input
History
Convert text between multiple case formats. Part of the freeq.one tools suite.
About This Tool
Text case conversion is a common and surprisingly varied need in programming, writing, and data processing. Different contexts demand different casing conventions: programming languages have strong opinions about variable naming, databases use their own conventions, and style guides dictate title capitalization. This tool converts text between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and more — all displayed side by side for easy comparison.
Each casing convention serves a specific purpose. CamelCase is the standard for JavaScript variables and functions, while PascalCase is used for React components and TypeScript classes. Snake_case is common in Python and database column names, and kebab-case is the convention for URL slugs and CSS class names. Having all conversions visible simultaneously makes it easy to pick the right format for your specific use case without running multiple transformations.
Common Use Cases
- Converting API response field names from snake_case (database convention) to camelCase (JavaScript convention)
- Preparing text for CSS class names (kebab-case) or HTML attributes (lowercase)
- Formatting titles and headings according to style guides like AP, Chicago, or MLA
- Converting database column names between different naming conventions during migrations
- Cleaning up user-generated content to consistent casing before storage or display
- Creating URL slugs from article titles by converting to kebab-case and removing special characters
Pro Tips
- Use camelCase for JavaScript variables and functions, PascalCase for React components and TypeScript classes
- Use snake_case for database column names and Python variable names to follow PEP 8 conventions
- Use kebab-case for URL slugs, CSS class names, and file names on the web
- Title case capitalizes major words but leaves articles, conjunctions, and prepositions lowercase — great for headlines
Frequently Asked Questions
- What is the difference between camelCase and PascalCase?
- CamelCase starts with a lowercase letter and capitalizes each subsequent word (e.g., "myVariableName"). PascalCase capitalizes every word including the first (e.g., "MyComponentName"). Both remove spaces entirely.
- When should I use snake_case vs kebab-case?
- Snake_case (using underscores) is common in Python, Ruby, and database systems. Kebab-case (using hyphens) is standard for URLs, CSS classes, and HTML attributes. Hyphens are not valid in most programming language identifiers, so snake_case is preferred in code.
- Does title case work correctly with abbreviations?
- The tool applies standard title casing rules, but abbreviations like "NASA" or "iPhone" may not be handled perfectly. For precise control, you can always copy the result and make manual adjustments.
- Can I convert large blocks of text?
- Yes. The tool processes all the text you enter and shows each case conversion result in full. There is no practical limit on text length, though very large inputs may affect performance.
Also check out the URL Encoder for more text tools. Part of the FreeQ.One tools suite.