Productivity
The Ultimate Text Formatting Guide: From Title Case to snake_case
June 10, 2026
5 min read
Text case rules define how strings are written and capitalized. While it might seem trivial, consistent case selection makes articles readable and is mandatory for clean code execution.
Different publishing houses, newspapers, and development languages enforce strict casing guidelines.
Editorial Case Guidelines
- Sentence Case: Capitalizes the first letter of sentences. This is standard for body text, blogs, and general documentation.
- Title Case: Capitalizes the first letter of major words while leaving small prepositions, conjunctions, and articles in lowercase (e.g. 'The Old Man and the Sea'). Mandatory for book titles, blog headers, and news articles.
- Capitalized Case: Capitalizes the first letter of every single word. Often used for button labels and UI callouts.
Developer Case Mappings
Computers read spaces as dividers, so programmers use casing formats to string variables together:
- camelCase: Concatenates words together, starting with lowercase and capitalizing subsequent words (e.g.
userPasswordReset). Standard in JavaScript and TypeScript. - snake_case: Connects words with underscores (e.g.
client_database_id). Standard in Python, Ruby, and database fields. - kebab-case: Connects words using hyphens (e.g.
main-header-wrapper). Standard in CSS styles and URL slugs.
Instead of manually adjusting text letter by letter, paste it into our Text Case Converter to instantly change cases and review real-time word statistics.