Case Converter
Convert text between 12 popular naming conventions instantly. Supports smart detection of camelCase, PascalCase, snake_case, kebab-case, and more. All processing happens in your browser.
About the Case Converter
The TensorLocal Case Converter is a developer-focused tool that transforms text between 12 of the most common naming conventions used in software development, writing, and data processing. Whether you're renaming variables across a codebase, preparing API endpoint slugs, or formatting configuration keys, this tool saves you from tedious manual rewriting. Simply paste your input — in any supported format — and all 12 conversions appear simultaneously, each with a one-click copy button.
The tool uses a smart splitting algorithm that automatically detects the structure of your input. It recognizes camelCase and PascalCase word boundaries by looking for transitions between lowercase and uppercase letters. It also handles explicit delimiters like underscores (snake_case), hyphens (kebab-case), dots (dot.case), slashes (path/case), and spaces. This means you can paste getUserProfile, get_user_profile, get-user-profile, or get user profile and get identical, correct results in all 12 output formats.
Why Naming Conventions Matter in Programming
Naming conventions are one of the most fundamental aspects of writing clean, readable code. Most programming languages and frameworks have established conventions: JavaScript and Java prefer camelCase for variables and PascalCase for classes; Python and Ruby use snake_case; CSS and URL slugs rely on kebab-case; environment variables and constants use CONSTANT_CASE (also called SCREAMING_SNAKE_CASE). Following these conventions consistently across a project reduces cognitive load for developers, makes code easier to review, and helps automated tools like linters enforce style rules.
Common Use Cases
Developers encounter case conversion tasks daily. When consuming a REST API that returns snake_case JSON keys, you may need to map them to camelCase properties in your JavaScript or TypeScript frontend. When defining database columns in SQL (typically snake_case) based on a domain model written in a PascalCase language like C#, you need a reliable way to translate between formats. DevOps engineers often convert between kebab-case (used in Kubernetes resource names and CLI flags) and CONSTANT_CASE (used in environment variables and shell scripts). This tool handles all of those transitions seamlessly.
How the Smart Splitting Works
The splitting algorithm works in two stages. First, it inserts boundary markers at camelCase transitions — for example, between a lowercase letter followed by an uppercase letter (getUser becomes get|User) and between a sequence of uppercase letters followed by a lowercase letter (HTMLParser becomes HTML|Parser). Then, it splits on any non-alphanumeric characters (underscores, hyphens, dots, slashes, spaces) and the inserted boundary markers. The result is a clean array of lowercase words that can be reassembled into any target format. All processing is done entirely in your browser — no data is ever sent to a server.