ToolsleAll tools →
Text Tools

Advanced text case converter — camelCase, snake_case, kebab-case

Convert pasted text into camelCase, PascalCase, snake_case, kebab-case, and many more developer and web formats, with find/replace and live word and character stats.

FAQPage Schema
Advanced text case converter — snake_case, kebab-case — Free Online Tool
InstantFreeNo signup

Input

0 characters · 0 words

Case conversions

Output updates live as you type. Click a mode to apply it; the active mode stays highlighted.

Only need everyday writing cases (UPPER, lower, Title, Sentence) with no code-style formats? Use the Quick case converter .

Output

0 characters · 0 words ( 0 chars vs input)

Lines

0

Words

0

Characters

0

Sentences (approx.)

0

Advanced text case tool — code & web formats

This advanced converter transforms pasted text into many formats at once: classic writing cases plus camelCase, PascalCase, snake_case, kebab-case, URL slugs, and more. Use find/replace and live stats for longer cleanup jobs. For only four everyday cases in a minimal UI, use the separate Quick case converter . Paste your text, pick a mode, copy the result—no signup.

All Supported Text Cases

Case nameExample outputPrimary use
UPPERCASEHELLO WORLDEmphasis, constants, acronyms
lowercasehello worldGeneral text, normalization
Title CaseHello WorldHeadings, titles, proper names
Sentence caseHello world.General writing, sentences
camelCasehelloWorldVariables in JS, Java, Swift
PascalCaseHelloWorldClasses, components, constructors
snake_casehello_worldPython variables, database columns
SCREAMING_SNAKEHELLO_WORLDConstants in Python, C, C++
kebab-casehello-worldCSS classes, URLs, HTML attributes
COBOL-CASEHELLO-WORLDCOBOL language, some configs
dot.casehello.worldConfig keys, package names
path/casehello/worldFile paths, URL paths
Alternating CasehElLo WoRlDMocking tone (internet slang)
Inverse CasehELLO wORLDStyle, emphasis
Random CaseheLLo WoRLDMeme text, randomization
Reverse Textdlrow ollehPuzzles, mirroring
Reverse Wordsworld helloReordering content
Slughello-worldURL slugs, file names
Remove Extra Spaceshello worldText cleanup
Remove Line Breakshello world fooSingle-line output

Naming Conventions in Programming

Different programming languages and contexts have established conventions for how to write identifiers like variable names, function names, and class names. Using the correct convention for your language makes code more readable and consistent.

Language / contextVariablesFunctionsClassesConstants
JavaScript / TypeScriptcamelCasecamelCasePascalCaseSCREAMING_SNAKE
Pythonsnake_casesnake_casePascalCaseSCREAMING_SNAKE
JavacamelCasecamelCasePascalCaseSCREAMING_SNAKE
C#camelCasePascalCasePascalCasePascalCase
Rubysnake_casesnake_casePascalCaseSCREAMING_SNAKE
PHPcamelCasecamelCasePascalCaseSCREAMING_SNAKE
Go (Golang)camelCasePascalCase (exported)PascalCasePascalCase
Rustsnake_casesnake_casePascalCaseSCREAMING_SNAKE
CSSkebab-case
HTMLkebab-case
Database (SQL)snake_casesnake_case

Title Case Rules

Title Case is more nuanced than simply capitalizing every word. Most style guides specify that certain short words should remain lowercase unless they are the first or last word of the title.

Style guideCapitalizeDo not capitalize (unless first/last word)
AP StyleAll words 4+ lettersa, an, and, at, but, by, for, in, nor, of, on, or, so, the, to, up, yet
Chicago ManualAll wordsArticles (a, an, the), coordinating conjunctions, prepositions under 5 letters
APA StyleAll words 4+ lettersShort conjunctions, articles, prepositions
MLA StyleAll wordsArticles, prepositions, coordinating conjunctions
SEO / GeneralAll major wordsCommon articles and prepositions

URL Slug Best Practices

A URL slug is the part of a URL that identifies a specific page in a human-readable form. Good slugs are lowercase, use hyphens as separators, contain keywords, and avoid special characters.

  • Use hyphens, not underscores — Google treats hyphens as word separators but underscores as character joiners. "text-case-converter" is better than "text_case_converter" for SEO.
  • Keep it short — 3–5 words is ideal. Long slugs are harder to share and remember.
  • Use keywords — The slug should describe the page content and include the primary keyword.
  • Remove stop words where possible — "how-to-convert-text-case" can often become "convert-text-case" without losing meaning.
  • Use lowercase only — URLs are case-sensitive on most servers. Lowercase prevents duplicate content issues.

Frequently Asked Questions

How do I convert text to title case online?

Paste your text into the input field and click the "Title Case" button. The converter capitalizes the first letter of each major word while keeping articles and short prepositions lowercase, following standard title case rules.

What is the difference between snake_case and kebab-case?

Both use the same words in lowercase with separators between them. snake_case uses underscores (hello_world) while kebab-case uses hyphens (hello-world). snake_case is used in programming for variable names. kebab-case is used in URLs, CSS class names, and HTML attributes where hyphens are preferred.

How do I convert a sentence to camelCase?

Paste your sentence into the input and click "camelCase". The converter removes spaces and special characters, lowercases the first word, and capitalizes the first letter of each subsequent word. For example, "Hello World Foo Bar" becomes "helloWorldFooBar".

What is alternating case used for?

Alternating case (aLtErNaTiNg CaSe) is an internet slang convention often used to mock something or express sarcastic or dismissive humor — particularly in response to statements the writer considers obvious or condescending. It has no professional or programming use.

How do I create a URL slug from a title?

Click the "Slug" button to automatically convert any text into a URL-safe slug. The converter lowercases all letters, replaces spaces with hyphens, removes special characters and punctuation, and collapses multiple hyphens into one. For example, "Hello World! This is a Test." becomes "hello-world-this-is-a-test".

FAQ

Frequently Asked Questions

Convert pasted text into camelCase, PascalCase, snake_case, kebab-case, and many more developer and web formats, with find/replace and live word and character stats. Open the tool in your browser on Toolsle.com — free, fast, and no download required.

Embed this tool on your site

Free to use on any website. Copy the code below and paste it into your page. A small “Powered by Toolsle” credit appears inside the embed.

↗ Preview embed · Full tool page

<iframe src="https://www.toolsle.com/embed/text-case-converter" width="100%" height="480" style="border:0;max-width:100%;" loading="lazy" title="Advanced text case converter — camelCase, snake_case, kebab-case — Toolsle"></iframe>