Text Case Converter
Convert text to different case formats - uppercase, lowercase, camelCase, snake_case, and more
How to Use the Text Case Converter
Enter Your Text
Type or paste any text you want to convert. Works with single words, phrases, or entire paragraphs.
Convert to All Cases
Click the convert button to see your text in 12 different case formats simultaneously.
Copy or Download
Copy individual formats to clipboard or download them as text files for use in your projects.
Text Case Formats Explained
Understanding different text case conventions and their use cases
camelCase
First word lowercase, subsequent words capitalized. No spaces or separators.
myVariableName, getUserData
Used in: JavaScript, Java, C#
PascalCase
All words capitalized, no spaces or separators.
MyClassName, UserDataModel
Used in: C#, Pascal, TypeScript interfaces
snake_case
Words separated by underscores, all lowercase.
user_name, get_user_data
Used in: Python, Ruby, database columns
kebab-case
Words separated by hyphens, all lowercase.
user-profile, get-user-data
Used in: CSS classes, URLs, HTML attributes
CONSTANT_CASE
All uppercase with underscores between words.
API_KEY, MAX_RETRY_COUNT
Used in: Constants, environment variables
Title Case
First letter of each word capitalized with spaces.
My Page Title, User Profile Settings
Used in: Titles, headers, proper nouns
dot.case
Words separated by dots, all lowercase.
user.profile, config.api.url
Used in: Object notation, configuration keys
Sentence case
Only the first letter and letters after periods capitalized.
This is a sentence. This is another.
Used in: Regular text, documentation
When to Use Each Case Format
Programming
- • Variables: camelCase, snake_case
- • Functions: camelCase, snake_case
- • Classes: PascalCase
- • Constants: CONSTANT_CASE
Web Development
- • CSS Classes: kebab-case
- • HTML IDs: kebab-case
- • URLs: kebab-case
- • File Names: kebab-case
Database & APIs
- • Column Names: snake_case
- • Table Names: snake_case
- • API Endpoints: kebab-case
- • JSON Keys: camelCase, snake_case
Documentation
- • Headings: Title Case
- • Content: Sentence case
- • File Names: kebab-case
- • Folders: kebab-case
Frequently Asked Questions
Which case format should I use for JavaScript variables?
Use camelCase for variables and functions (e.g., userName, getUserData), and PascalCase for classes and constructors (e.g., UserModel).
What's the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariable), while PascalCase starts with an uppercase letter (MyClass). Both capitalize subsequent words.
When should I use CONSTANT_CASE?
Use CONSTANT_CASE for values that never change, like API keys, configuration constants, and mathematical constants (e.g., API_BASE_URL, MAX_ATTEMPTS).
Is kebab-case the same as dash-case?
Yes, kebab-case and dash-case refer to the same format where words are separated by hyphens and all letters are lowercase.
Case Formats
Today's Stats
Pro Tips
Consistency: Stick to one case format within the same project or codebase for better readability.
Team Standards: Follow your team's or language's established naming conventions.
Readability: Choose case formats that make your code more readable and self-documenting.