Developer & Tech
Case Converter
Enter your details
Runs in your browser
How to use it
Using the case converter
- 01
Paste your phrase
A column name, file name, heading or existing identifier in ANY convention.
- 02
Read all nine outputs
Every common programming and writing convention computes at once.
- 03
Copy what you need
Grab camelCase for variables, kebab-case for URLs, snake_case for SQL columns.
Good to know
Why smart splitting beats naive spaces
Real input arrives pre-mixed: “user_profileImage URL” mixes three conventions in one string. Boundary-aware splitting recovers the underlying words first; handling camel humps, acronyms and punctuation separators; before applying the target convention, so conversions stay correct regardless of source format.
Where each convention lives
- camelCase; JavaScript/Java variables and functions
- PascalCase; classes, components, types
- snake_case; Python, SQL columns, Ruby symbols
- kebab-case; URLs, CSS classes, file names
- CONSTANT_CASE; environment variables and true constants
How it's calculated
The math behind this calculator
split on non-alphanumerics + camel/Pascal boundaries → rejoin per conventionWord splitting inserts breaks before uppercase letters following lowercase ones (helloWorld → hello World), splits acronym boundaries (parseHTTPResponse → parse HTTP Response), then divides on every remaining non-alphanumeric character.
The recovered word list rejoins under each convention: camelCase lowercases everything except capitalized tails, PascalCase capitalizes every word, snake/kebab/CONSTANT join with underscores or dashes, and Title/Sentence/UPPER/lower handle human-readable forms; all nine outputs computed together from one paste.
Assumptions & limitations
- Input intended as identifiers, headings or short phrases; not prose paragraphs.
- Acronyms longer than two capitals split conservatively (HTTPURL stays one word).
- Digits count as word characters and attach to adjacent tokens.
Worked example
Three plain words “hello world foo” become helloWorldFoo in camelCase; with all eight other conventions available in the same result panel.
FAQ
Frequently asked questions
- How are numbers handled inside words?
- Digits attach to their neighboring token: “html5 parser” becomes html5Parser, keeping versioned names intact.
- What happens with ALL-CAPS acronyms?
- Two-letter caps merge into the previous word sensibly; long runs like HTTPURL stay single tokens since no internal boundary exists. “parseHTTPResponse” correctly splits into parse/HTTP/Response.
- Can I convert whole paragraphs?
- Technically yes, but the tool targets identifiers and phrases; sentence punctuation vanishes during word splitting, which is usually what you want for variable names.
- Is Sentence case really one sentence style?
- It capitalizes only the first character of the whole output; the typical headline-vs-sentence distinction you meet in UI copy guidelines.
Keep exploring