String Case Converter
RAW TEXT STRING INPUT
String Case Conversion Conventions in Programming
Selecting the correct variable and file naming conventions is essential for code readability and style guide compliance across JavaScript, Python, C++, and CSS.
Naming Convention Matrix
- JavaScript/TypeScript:
camelCasevariables,PascalCaseclasses/React components. - Python/Rust/SQL:
snake_casefunctions and database column names. - CSS/HTML/URLs:
kebab-caseclass selectors and URL slugs.
Related Developer Tools
Generate URL slugs with the Slug Generator, encode Base64 strings with the Base64 Encoder, or format SQL queries with the SQL Formatter.
Frequently Asked Questions
Common questions about this tool.
What is camelCase? ▼
`camelCase` capitalizes the first letter of each word except the first word, with zero spaces or punctuation (e.g. `userFirstName`). Used in JavaScript, TypeScript, and Java.
What is snake_case? ▼
`snake_case` separates words using lowercase letters and underscores (`_`) (e.g. `user_first_name`). Used in Python, Rust, and SQL column naming.
What is kebab-case? ▼
`kebab-case` separates words using lowercase letters and hyphens (`-`) (e.g. `user-first-name`). Used in CSS class names, HTML attributes, and URL slugs.
What is PascalCase? ▼
`PascalCase` capitalizes the first letter of every word (e.g. `UserFirstName`). Used for React component names and TypeScript interfaces.
What is CONSTANT_CASE? ▼
`CONSTANT_CASE` converts all letters to uppercase separated by underscores (e.g. `MAX_RETRY_COUNT`). Used for global environment variables and constants.
Related Free Utilities
View all tools →ChatGPT Ad Blocker
Block ChatGPT upgrade banners, upsell promo cards, and partner app ads with a lightweight, privacy-first Manifest V3 Chrome extension.
JSON diff
JSON diff. Use this privacy-first json diff directly in your browser.
Base64 encoder
Base64 encoder. Use this privacy-first base64 encoder directly in your browser.
URL parser
URL parser. Use this privacy-first url parser directly in your browser.