Text Case Converter
Type any text to see it converted to every common case style at once.
UPPERCASE
HELLO WORLD EXAMPLE
lowercase
hello world example
Title Case
Hello World Example
camelCase
helloWorldExample
snake_case
hello_world_example
kebab-case
hello-world-example
How to use this tool
Type or paste your text into the Input text box and it updates instantly across all six case styles below — no need to click convert. Use UPPERCASE or lowercase for basic formatting, Title Case for headlines, and camelCase, snake_case, or kebab-case when naming variables, files, or URL slugs. Each result sits in its own row with a dedicated copy icon, so you can grab just the format you need without touching the others.
Where words are split, with real input
| Input | snake_case | Title Case |
|---|---|---|
XMLHttpRequest parser | xml_http_request_parser | Xmlhttprequest Parser |
user_ID-2 value | user_id_2_value | User_Id-2 Value |
iPhone 15 Pro max | i_phone_15_pro_max | Iphone 15 Pro Max |
Café au lait | café_au_lait | Café Au Lait |
For code styles, a new word starts at a space, a symbol, or a capital that follows a lowercase letter or digit, and a run of capitals such as XML is kept together. That is why iPhone becomes i_phone: names with a capital in the middle are split there, so fix them by hand. Title Case works the other way, treating everything up to a space, underscore or hyphen as one word, which flattens XMLHttpRequest and iPhone. Accented letters are kept in every style; for a web address, use the Slug Generator, which turns é into e.
Worked example
The default sample text "Hello World Example" becomes helloWorldExample in camelCase, hello_world_example in snake_case, and hello-world-example in kebab-case — the same three words, split identically, just joined and cased differently depending on the target convention.
Frequently Asked Questions
How does the converter know where to split words for camelCase or snake_case?
It splits on spaces, punctuation, and underscores, and also detects the boundary between a lowercase letter and an uppercase letter — so 'projectName' or 'Project Name' both split into the same two words before being rejoined in the target case style. This makes it easy to convert already-camelCased identifiers into snake_case or kebab-case without manually adding spaces first.
Does Title Case leave words like "and" and "the" in lowercase?
No. Title Case here capitalises the first letter of every word and lowercases the rest, so "the lord of the rings" becomes "The Lord Of The Rings". Style guides such as AP and Chicago keep short words like "of" and "the" in lowercase unless they start the title, so fix those by hand for a headline. The same rule also lowercases acronyms: "NASA budget" becomes "Nasa Budget".
Does this handle text with numbers or existing punctuation correctly?
Yes — numbers are treated as part of the surrounding word boundary detection, and punctuation like hyphens, underscores, or periods in the input is treated as a word separator rather than preserved literally, so 'user-id-2' converts cleanly to, for example, 'userId2' in camelCase.
Related Tools
Related Blog Posts
camelCase, snake_case, kebab-case and Title Case: Which Goes Where
The naming convention each language, database and URL expects, the PostgreSQL quirk that breaks camelCase columns, and what automatic case conversion does to acronyms like XMLHttpRequest and names like iPhone.
Read moreHow to Convert JSON to Excel, CSV, XML and YAML (and Back)
What actually happens to your data when JSON becomes a spreadsheet, XML, or YAML: missing keys, nested values, leading zeros, and the XML array problem, with real converter output.
Read moreConverting CSV and XML to Excel Without Losing Data
Why double-clicking a CSV mangles PIN codes, long IDs and ₹ signs, what a careful CSV-to-Excel conversion does instead, and how XML records map to spreadsheet columns.
Read more