Text & Writing Tools

Text Case Converter

Instantly convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case.

  • Free
  • No sign-up
  • Runs in your browser

Text Case Converter

0 characters (0 no spaces) | 0 words | 0 lines

Runs in your browser. Your inputs never leave your device.

Quick Answer

To convert text between case styles, paste your content into the input box and select any transformation style. The tool instantly transforms text into UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and more while preserving punctuation and Unicode characters entirely in your browser.

How to Use

  1. Paste Your Content. Paste or type your unformatted text into the text area.
  2. Choose a Case Style. Click any of the 12 case transformation buttons (such as Title Case, UPPERCASE, camelCase, or CONSTANT_CASE).
  3. Copy or Undo. Click Copy Text to copy the transformed result to your clipboard, or click Undo if you wish to revert.

How & When to Use the Text Case Converter

  • Software Development & Coding: Convert user input or schema definitions into standardized code conventions (e.g. `camelCase` for JavaScript variables, `snake_case` for Python/database columns, or `CONSTANT_CASE` for global environment variables).
  • Blog & Article Headline Publishing: Convert messy rough draft titles into elegant Chicago-style Title Case where minor prepositions remain lowercased.
  • Accidental CAPS LOCK Correction: Restore sentences typed with caps lock on without having to retype paragraphs from scratch.
  • SEO URL Slug Formatting: Turn article headlines into search-engine-friendly `kebab-case` slugs for website URLs.

Case Style Reference & Developer Conventions

Case Style Sample Output Common Industry Usage
UPPERCASE HELLO WORLD Headlines, warnings, acronyms
lowercase hello world Email addresses, search normalization
Title Case The Return of the King Book titles, editorial articles
Sentence case Hello world. Good morning. Body prose, user documentation
camelCase helloWorld JavaScript, Java variable & method names
PascalCase HelloWorld Classes in C#, Java, Python, TypeScript
snake_case hello_world Python variables, SQL database columns
kebab-case hello-world URL slugs, CSS classes, HTML attributes
CONSTANT_CASE HELLO_WORLD Environment variables, immutable constants
dot.case hello.world Property paths, configuration keys

Case Transformation & Tokenization Rules

Transformed Text = ApplyCaseTransform(TokenizeWords(InputString, UnicodeRegex), StyleRule)

Input strings are tokenized into words using Unicode letter property escapes (\p{L}). Words are then restructured according to specific style rules: Chicago Manual of Style minor word rules for Title Case, or underscore/hyphen delimiters for programmatic identifiers.

Worked Examples

Headline to Chicago Title Case

Input: 'the quick brown fox jumps over the lazy dog' · Target Style: Title Case

  1. Tokenize words across Unicode whitespace boundaries
  2. Capitalize leading and trailing words ('The', 'Dog')
  3. Capitalize major words ('Quick', 'Brown', 'Fox', 'Jumps', 'Lazy')
  4. Keep minor prepositions and articles lowercase ('over', 'the')

Result: 'The Quick Brown Fox Jumps Over the Lazy Dog'

Title to camelCase (JavaScript Identifier)

Input: 'user profile setting' · Target Style: camelCase

  1. Extract alphanumeric word tokens: ['user', 'profile', 'setting']
  2. Lower-case the first word: 'user'
  3. Capitalize first character of subsequent words: 'Profile', 'Setting'
  4. Concatenate without spaces

Result: 'userProfileSetting'

Title to kebab-case (URL Slug)

Input: 'Annual Financial Report 2026' · Target Style: kebab-case

  1. Tokenize words: ['Annual', 'Financial', 'Report', '2026']
  2. Convert all characters to lowercase
  3. Join tokens using hyphens (-)

Result: 'annual-financial-report-2026'

Sentence Case Capitalization

Input: 'hello world! this is a test. here is another one.' · Target Style: Sentence case

  1. Identify sentence terminators (. ! ?)
  2. Capitalize initial letter of each sentence
  3. Keep remaining sentence characters lowercase

Result: 'Hello world! This is a test. Here is another one.'

Common Mistakes to Avoid

  • Capitalizing Minor Prepositions in Title Case: In Chicago and AP style, minor prepositions, articles, and conjunctions under four letters (e.g., 'in', 'on', 'the', 'and', 'for') remain lowercase unless starting a sentence.
  • Breaking Unicode & Accented Characters: Naive case conversion using standard ASCII regex fails on accented letters like 'é' or non-Latin alphabets; Unicode property escapes (\p{L}) must be used.
  • Losing Delimiters When Converting Code: Converting camelCase or snake_case code into sentence case strips programming delimiters. Keep backups or use the Undo button.
  • Title Case on All-Caps Input: If all-caps text is fed into a title case engine without initial lower-casing, minor prepositions remain capitalized. Our algorithm normalizes tokens first.

Frequently Asked Questions

How do you convert text case online?

Paste your text into the converter box and click any case transformation button such as UPPERCASE, lowercase, Title Case, or Sentence case. The text updates immediately in your browser.

What is the difference between Title Case and Capitalize Each Word?

Title Case capitalizes primary words but keeps minor grammatical articles and prepositions (such as 'in', 'the', 'of', 'and', 'for') in lowercase unless they appear as the first or last word. Capitalize Each Word unconditionally capitalizes the first letter of every single word.

What is the difference between camelCase, PascalCase, snake_case, and kebab-case?

camelCase starts lowercase and capitalizes subsequent words with no spaces (e.g. 'myVariable'). PascalCase capitalizes all words including the first ('MyVariable'). snake_case separates words with underscores in lowercase ('my_variable'). kebab-case separates words with hyphens ('my-variable').

Can I undo a conversion if I don't like the result?

Yes. Click the Undo button to revert to your previous text state at any time.

Is my text data private when using the converter?

Yes. All text transformation logic executes strictly in local browser memory via client-side JavaScript. Your text is never stored in URLs, never saved to cookies, and never sent to remote servers.

Does the converter support foreign languages and accented characters?

Yes. The text engine uses Unicode property escapes (\p{L}) to handle accents, umlauts, and international alphabets like Spanish, French, and German seamlessly.

What is CONSTANT_CASE used for?

CONSTANT_CASE converts text to uppercase with underscores, the standard naming convention for global variables, immutable constants, and environment variables in programming.

Sources & References