ToolsleFree tools · toolsle.com

Input

0 characters · 0 words

Case conversions

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

Output

0 characters · 0 words(0 chars vs input)

Lines

0

Words

0

Characters

0

Sentences (approx.)

0

Text Case Converter

Text Case Converter — 20 Text Transformations Instantly

Our free text case converter transforms any text into 20 different formats instantly. Convert to UPPERCASE or lowercase, format for code with camelCase, PascalCase, snake_case, or kebab-case, create URL slugs, apply Title Case or Sentence case, and more. Paste your text, click a button, copy the result. No signup, no limits.

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.

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".