π€ Text Case Converter
Convert text between 10+ case formats instantly.
How to Use This Tool
Type or paste your text in the input box, then click any of the case format buttons. The converted output appears instantly below. You can convert the same input to multiple formats by clicking different buttons in sequence.
Paste or type your source text into the Input Text box.
Click the desired case format button: UPPERCASE, Title Case, camelCase, snake_case, and more.
Review the output. The label above the output shows which format was applied.
Click Copy Output, or use Swap to send the output back to the input for further conversion.
Naming Conventions by Language and Context
Each programming language and platform has a preferred naming convention, and mixing them in a codebase looks unprofessional and can cause real bugs in some languages. JavaScript uses camelCase for variables and functions (getUserById) and PascalCase for classes and constructor functions (UserService). Python uses snake_case for everything except class names, which are PascalCase, and constants which are UPPER_SNAKE_CASE (MAX_RETRY_COUNT). Database column names are typically snake_case in PostgreSQL and MySQL, which is why ORMs often need to map between the JavaScript camelCase convention and the SQL snake_case convention automatically. CSS class names and HTML attributes use kebab-case (is-active, data-user-id), and URLs use kebab-case slugs (/blog/my-first-post) for SEO reasons since search engines treat hyphens as word separators but underscores as connectors. This tool also handles the reverse: if you receive an API response in snake_case and need to convert property names to camelCase for your frontend, paste the names here and convert in a single step.
Common Use Cases
Frequently Asked Questions
What is title case?
Title case capitalizes the first letter of each major word. Articles (a, an, the), prepositions, and conjunctions under 4 letters are typically lowercase unless they start the title.
What is camelCase?
camelCase writes compound words without spaces, with each word (except the first) capitalized: myVariableName. Used heavily in JavaScript and Java programming.
What is snake_case?
snake_case uses underscores between words, all lowercase: my_variable_name. Common in Python, SQL, and Ruby.
What is kebab-case?
kebab-case uses hyphens between words, all lowercase: my-variable-name. Used in HTML attributes, CSS class names, and URLs.
What is UPPER_SNAKE_CASE (SCREAMING_SNAKE_CASE)?
UPPER_SNAKE_CASE is all uppercase with underscores: MAX_VALUE, API_KEY. Used for constants in many programming languages.