What is a Case Converter?
A case converter is a tool that transforms text from one capitalization format to another. Whether you need to convert a variable name to camelCase for JavaScript, a CSS class to kebab-case, a database column to snake_case, or simply change a headline to Title Case, a case converter does it instantly without manual editing.
ToolSnap's case converter supports eight of the most commonly used text case formats and works entirely in your browser. No data is sent to any server — your text stays private at all times.
How to Use the Case Converter
- Paste or type your text in the text box.
- Click any case button to instantly convert your text to that format. The text updates in place.
- Copy the result with the Copy button or undo the last conversion with Undo.
Supported Case Formats
- UPPER CASE — Every character is capitalized. Used for constants, acronyms, and emphasis.
- lower case — Every character is lowercased. Common for normalizing input or writing URLs.
- Title Case — The first letter of every word is capitalized. Standard for headings, titles, and proper nouns.
- Sentence case — Only the first letter of each sentence is capitalized. Used for natural prose.
- camelCase — Words are joined with no spaces; each word after the first starts with a capital letter. Standard in JavaScript, Java, and Swift for variable and function names.
- PascalCase — Like camelCase but the first word is also capitalized. Used for class names in most object-oriented languages.
- snake_case — Words are joined with underscores, all lowercase. Common in Python, Ruby, and SQL.
- kebab-case — Words are joined with hyphens, all lowercase. Standard for CSS class names and URL slugs.
When to Use Each Case
Different programming languages and style guides have different conventions for naming variables, functions, classes, and files. Using the wrong case can cause syntax errors, broken imports, or style guide violations during code review.
- JavaScript / TypeScript — variables and functions use camelCase, classes use PascalCase, constants use UPPER_CASE.
- Python — variables and functions use snake_case, classes use PascalCase, constants use UPPER_CASE.
- CSS / HTML — class names and IDs use kebab-case.
- SQL — table and column names typically use snake_case.
- File names — kebab-case is widely recommended for URLs and static assets.
Frequently Asked Questions
Does it handle camelCase or snake_case input correctly?
Yes. The converter intelligently tokenizes your input before converting, so "helloWorld", "hello_world", and "hello-world" all produce the same result regardless of the target format.
Does it work offline?
Yes. All conversions happen in your browser using JavaScript. Once the page loads, no internet connection is needed.
Is there a character limit?
No hard limit. The converter handles large blocks of text easily.
Does it preserve punctuation?
For prose formats (UPPER CASE, lower case, Title Case, Sentence case) punctuation is preserved. For code formats (camelCase, PascalCase, snake_case, kebab-case) non-alphanumeric characters are used as word separators and removed from the output, as is standard for identifiers in programming languages.