Converters Text Case Converter

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

Inputsnake_caseTitle Case
XMLHttpRequest parserxml_http_request_parserXmlhttprequest Parser
user_ID-2 valueuser_id_2_valueUser_Id-2 Value
iPhone 15 Pro maxi_phone_15_pro_maxIphone 15 Pro Max
Café au laitcafé_au_laitCafé 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