Text Case Converter — camelCase, snake_case, PascalCase, kebab-case & 14 Formats
What's included
Features
About this tool
Text Case Converter — Free, Convert to camelCase, snake_case, PascalCase, kebab-case & 14 More Formats
Paste your text once and instantly see all 14 case conversions side by side — no switching between tools, no separate buttons, no waiting. Every format updates live as you type.
This tool covers every naming convention you will encounter in software development and content writing: camelCase for JavaScript variables and functions, PascalCase for React components and TypeScript types, snake_case for Python and database columns, SCREAMING_SNAKE_CASE for constants and environment variables, kebab-case for CSS classes and URL slugs, COBOL-CASE for HTTP headers and legacy systems, Train-Case for HTTP header formatting in Go, dot.case for package namespaces and config keys, Title Case for headings and UI labels, Sentence case for readable prose, UPPER CASE, lower case, alternating case, and inverse case.
The converter is smart about its input. If you paste existing camelCase or PascalCase text like getUserProfileData, it automatically splits on letter-case transitions — get, User, Profile, Data — so all output formats are correct. It also splits on underscores, hyphens, dots, and spaces, meaning you can paste from any source format and get accurate output in every target format.
Multi-line support means you can paste a whole list of identifiers — one per line — and every line gets converted independently. Paste 20 database column names and get all 14 case variants for all 20 names at once.
Pin your most-used cases to the top of the grid so they're always within reach. Use the ↑ Apply button to feed any converted output back into the input for chaining conversions. Everything runs in your browser — no server, no data sent, works offline.
Step by step
How to Use
- 1Type or paste your text into the input fieldType or paste any text into the large input field at the top of the page. All 14 case conversions appear instantly in the card grid below as you type — no button press required. Click Paste to pull text directly from your clipboard, Sample to load example text and explore the tool, or Clear to reset the input. The word and character count update live in the header.
- 2Browse the conversion results gridEach card in the grid shows the case format label (e.g., camelCase, snake_case), its colour-coded identifier, the converted output for your text, and a small example to confirm the expected format. All 14 formats — camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, COBOL-CASE, Train-Case, dot.case, Title Case, Sentence case, UPPER CASE, lower case, alternating case, and inverse case — are shown simultaneously so you can compare them at a glance.
- 3Copy any format with one clickClick the Copy button on any case card to copy that format's output to your clipboard. The button briefly shows a checkmark to confirm the copy. You can copy multiple different formats in sequence — each click copies that card's output independently.
- 4Filter to find a specific case quicklyUse the Filter cases search input in the toolbar to narrow the grid by name. Type "snake" to show only snake-related formats, "camel" to find camelCase and related formats, or "title" to find title and train case. The grid filters in real time as you type.
- 5Pin, apply, and chain conversionsClick ⊹ on any card to pin it to the top of the grid — useful when you always need camelCase or snake_case within reach. Click ↑ (Apply) to feed that card's output back into the input field for further transformation — for example, apply camelCase first to split the input cleanly, then apply snake_case to the result. This chaining approach handles complex mixed-format input that a single conversion might not parse perfectly.
Real-world uses
Common Use Cases
Got questions?
Frequently Asked Questions
Paste your text into the input field at the top of this converter. All 14 case formats are shown simultaneously in the grid below — find the camelCase card and click "Copy" to copy the converted text to your clipboard. camelCase joins words together with no separator and capitalizes every word except the first: "hello world" becomes "helloWorld". The converter automatically handles text from any source — it splits on spaces, hyphens, underscores, dots, and even detects existing camelCase or PascalCase boundaries.
camelCase starts with a lowercase letter and capitalizes each subsequent word: helloWorld. It is the default naming convention for variables and functions in JavaScript, Java, Swift, Kotlin, and Dart. PascalCase (also called UpperCamelCase) capitalizes every word including the first: HelloWorld. It is used for class names, component names in React, and type names in TypeScript and C#. snake_case separates words with underscores and uses all lowercase: hello_world. It is the standard for variables and functions in Python, Ruby, and Rust, and for database column names in SQL.
kebab-case (also written as "kebab case" or "spinal case") separates words with hyphens and uses all lowercase: hello-world. It is the standard for CSS class names, HTML attributes, URL slugs, and file names in web projects. For example: a CSS utility class might be .flex-center, a URL might be /blog/getting-started-with-react, and a package name in npm uses kebab-case. Kebab-case is invalid in most programming languages as a variable or function name because the hyphen is interpreted as a minus operator — it is primarily a web and filesystem convention.
SCREAMING_SNAKE_CASE (also called CONSTANT_CASE or UPPER_SNAKE_CASE) uses all uppercase letters with underscores between words: HELLO_WORLD. It is the universal convention for constants, environment variables, and compile-time configuration values across almost every programming language. Examples: MAX_RETRIES = 3, API_BASE_URL, NODE_ENV = "production", HTTP_PORT = 8080. In Python, Java, JavaScript, C, C++, Go, and Rust, constants defined at the module or global scope use SCREAMING_SNAKE_CASE. Environment variables in .env files and shell scripts also follow this convention.
Paste your camelCase text (e.g., "getUserProfile") into the input field. The converter automatically detects camelCase word boundaries by splitting on transitions between lowercase and uppercase letters. The snake_case card in the grid shows the converted result: "get_user_profile". Click "Copy" to copy it. The same input simultaneously produces all other formats — PascalCase, kebab-case, SCREAMING_SNAKE_CASE, and more — so you can switch between naming conventions for the same identifier without re-typing.
Title Case capitalizes the first letter of every word: "Hello World". It is used for article headings, page titles, button labels, navigation items, and book titles. This converter capitalizes every word including short conjunctions and prepositions, which is appropriate for UI labels and headings. Academic and journalistic style guides (APA, Chicago, AP) define slightly different rules — for example, short prepositions like "in", "on", and "at" are typically not capitalized in headlines — but for most web and UI purposes, capitalizing every word produces consistent, readable results.
COBOL-CASE (also called screaming kebab case or UPPER-KEBAB-CASE) uses all uppercase letters separated by hyphens: HELLO-WORLD. It gets its name from the COBOL programming language, where identifiers historically used this format. Today it appears as HTTP header names (Content-Type, X-Request-ID, Accept-Language), in some legacy enterprise systems, and occasionally in configuration file keys. The Train-Case variant (Hello-World) is used specifically for HTTP headers in Go's http package, where it distinguishes canonically formatted header keys.
Yes — the converter handles multi-line input. Each line is converted independently so line breaks are preserved in the output. For example, if you paste a list of database column names like "user_first_name", "email_address", "created_at" with each on its own line, the camelCase output will show "userFirstName", "emailAddress", "createdAt" — one per line. This is useful when renaming a batch of variables, converting a list of API field names between conventions, or reformatting a set of CSS class names. Pin your most-used case formats to the top of the grid using the ⊹ button for faster access.