Skip to main content

Text Case Converter

Instantly convert text to uppercase, lowercase, title case, camelCase, snake_case, and more. Free online formatting tool for writers and developers.

Input Text
Chars: 0 Words: 0 Lines: 0
Converted Result
Chars: 0 Words: 0 Lines: 0

Choose Conversion Format

Advertisement

Editorial & Code Naming Reference 11 Case Transformations

Text Case Rules: Editorial Capitalization and Developer Naming Conventions

Switching capitalization rules manually across long essays, database schema exports, or URL slug lists wastes time and introduces quiet typos. Whether someone left Caps Lock enabled for three paragraphs or pasted thirty SQL column headers that need JavaScript property names, consistent casing depends on two distinct rule sets: grammatical sentence preservation for human prose and token boundary splitting for programming identifiers.

1. Prose Capitalization vs. Identifier Token Extraction

Notice the two color groups inside the conversion grid above. The six neutral buttons (UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, and tOGGLE cASE) transform text in place while preserving original commas, apostrophes, line indentation, and whitespace formatting.

By contrast, the five blue programming buttons (camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, and kebab-case) process your text line by line using a boundary extractor. Each newline separates an independent variable or slug candidate, punctuation noise is discarded, mixed case acronyms are split into word tokens, and every line is stitched back together using your chosen delimiter. That lets you paste an entire column list from a spreadsheet and convert every variable name simultaneously in one pass.

Format Name Sample Input Output Result Primary Context
UPPERCASE Order status: paid ORDER STATUS: PAID Badges, warnings, acronyms
lowercase [email protected] [email protected] Emails, search normalization
Title Case notes on a quick start Notes on a Quick Start Headlines, article H1 titles
Sentence case FIRST LINE. SECOND ONE! First line. Second one! UI labels, body paragraphs
Capitalize Each Word it's time for lunch It's Time For Lunch Names, apostrophe safe headings
tOGGLE cASE hELLO wORLD Hello World Fixing inverted Caps Lock
camelCase max_retry_count maxRetryCount JavaScript, Java, Go locals
PascalCase user_profile_card UserProfileCard Classes, React components, C#
snake_case parseHTMLResponse parse_html_response Python, Rust, SQL columns
SCREAMING_SNAKE_CASE apiTimeoutMs API_TIMEOUT_MS Environment keys, constants
kebab-case Static Web Guide static-web-guide URL slugs, CSS classes, CLI flags

2. Nuances Inside Title Case, Sentence Case, and Apostrophes

Editorial style guides never agree completely on headline capitalization, yet John Gruber's Title Case pattern covers most web typography needs cleanly. The converter lowercases minor short words (such as a, an, and, as, at, but, by, for, if, in, nor, of, on, or, per, the, to, vs, and via) inside a headline while automatically promoting the very first word, the very last word, and any word appearing right after a subtitle colon (for example turning sql tuning: a field manual into Sql Tuning: A Field Manual).

Two subtle differences separate the remaining editorial buttons. First, Sentence case resets every letter to lowercase before capitalizing the opening character of the block and letters immediately following periods, exclamation marks, or question marks; always review recovered paragraphs to restore proper nouns such as brand names, acronyms like PDF, or calendar days. Second, Capitalize Each Word treats both straight ASCII apostrophes (') and typographic curly apostrophes (’) as internal word characters, ensuring don't panic renders properly as Don't Panic instead of capitalizing the trailing T.

3. Splitting Embedded Acronyms, Numbers, and Punctuation Boundaries

Developer codebases regularly mix conventions inside a single migration: one microservice exposes JSON responses in camel case while a legacy PostgreSQL table stores columns in snake case. Running naive lowercase replacements destroys word boundaries because parseHTMLFile has no spaces between words.

Instead, the extractor scans each line for lowercase tails, accented Latin-1 characters, numeric digits, and uppercase acronym clusters followed by uppercase or punctuation breaks. Consequently, feeding parseHTMLFile into snake_case yields parse_html_file rather than parse_h_t_m_l_file or parsehtmlfile, and converting userID2Token into SCREAMING_SNAKE_CASE outputs USER_ID_2_TOKEN. Numbers isolate cleanly as separate segments so schema version suffixes such as oauth2Client map reliably across formats.

Three practical edge cases matter when converting mixed identifiers or filenames. First, because extractWords isolates alphanumeric word tokens and discards punctuation delimiters, leading underscores such as _privateKey normalize cleanly to privateKey without keeping stray leading underscores, while dotted version tags like release.v2.4 join into release_v2_4 or release-v2-4 cleanly. Second, apostrophes inside possessive nouns behave differently across the two button groups: prose modes such as Capitalize Each Word preserve customer's order as Customer's Order, whereas identifier modes treat the apostrophe as a non word delimiter (customer_s_order), so strip possessive suffixes before generating URL slugs. Third, whitespace lines inside a multiline list stay aligned vertically line for line, making spreadsheet column paste operations predictable across dozens of fields.

4. Choosing Conventions for URLs, Databases, and Codebases

  • URL Slugs & Filenames (kebab case): Search engines and Unix shells handle hyphens cleanly without URL percent encoding. Never publish URL paths with spaces (%20) or mixed uppercase letters when servers run case sensitive routing.
  • SQL Columns & Python PEP 8 (snake case): PostgreSQL folds unquoted identifiers to lowercase internally, so customer_signup_date stays consistent across queries without wrapping column names in double quotes.
  • TypeScript Variables vs. Components (camel vs Pascal): Reserve lowercase leading camelCase for variables, JSON keys, and methods, and promote initial uppercase PascalCase for classes, TypeScript interfaces, and JSX component names.
  • Environment Variables (SCREAMING SNAKE CASE): Shell exports and .env configurations expect uppercase underscore keys such as STRIPE_WEBHOOK_SECRET to stand apart visually from runtime local variables.

Advertisement

5. Workspace Stats, Swap Chaining, and Everyday Editorial Workflows

Live Chars, Words, and Lines counters track both panels independently so copywriters enforcing strict length caps on meta titles, SERP snippets, or social posts can confirm character limits immediately after applying Title Case or Sentence case. Clicking Swap shifts the converted result straight back into the input pane whenever you want to chain two transformations without copying to a separate scratchpad (for example, normalizing an erratic pasted block with lowercase first, fixing a proper noun typo, and only then converting a multiline header block into kebab-case URL slugs or PascalCase TypeScript types).

Another common rescue happens when importing all caps contract clauses, PDF extracts, or database dump warnings back into readable documentation. Instead of retyping three hundred words of shouted uppercase prose, apply Sentence case to reset sentence boundaries instantly, scan for capitalized company names, and click Copy. Because every transformation, statistic update, and clipboard export runs strictly inside your local browser memory without sending strings across any network request, confidential source schemas, unreleased headlines, and internal configuration keys stay completely private on your device.