wtoolsy.com
Network, DNS, IP
Developer tools
SEO and page analysis
Finance and calculators
Universal
Articles
All articles

Text formatting styles – camelCase, snake_case and others

Different text writing styles are used in programming, SEO, file systems and URLs. Each has a different use and convention for capitalization and separators.

Convert text between formats automatically using our tool Text Case Converter .
UPPERCASE HELLO WORLD

All letters uppercase. Used for headings, abbreviations and highlights.

lowercase hello world

All letters lowercase. Popular in URLs, tags and identifiers.

Title Case Hello World

Every word capitalized. Article titles, headings.

Sentence case Hello world

Only the first word capitalized. Standard sentence writing.

camelCase helloWorld

First word lowercase, subsequent words capitalized. Standard in JavaScript and Java.

PascalCase HelloWorld

Every word capitalized, no separators. Class names and React components.

snake_case hello_world

Words separated by underscores. Python, databases, Ruby.

SCREAMING_SNAKE HELLO_WORLD

snake_case in uppercase. Constants in code.

kebab-case hello-world

Words separated by hyphens. URLs, SEO slugs, CSS classes.

dot.case hello.world

Words separated by dots. Java/Kotlin packages, configuration (e.g. application.properties).

aLtErNaTiNg hElLo WoRlD

Alternating uppercase and lowercase letters. Humorous style from internet memes.

When to use each style?

camelCase & PascalCase

JavaScript, TypeScript, Java, C# — variables, functions, classes, React components. PascalCase applies to classes and types, camelCase to variables and methods.

snake_case

Python (recommended by PEP 8), Ruby, Rust, SQL — column names, tables, variables. Readable with long multi-word names.

kebab-case

URLs and SEO slugs, CSS classes, HTML attributes (data-my-value), file names in frontend projects. Google prefers hyphens over underscores in URLs.

SCREAMING_SNAKE_CASE

Constants in Python, C, Java, environment variables (.env). Immediately signals that the value should not change.

Trivia

Name camelCase comes from the resemblance of the capital letters to the humps of a camel (Eng. camel). The variant with a lowercase first letter is lower camelCase, and PascalCase is sometimes called upper camelCase.

PascalCase got its name from the Pascal language created by Niklaus Wirth in 1970, in which it was commonly used for identifiers.

Google officially recommends kebab-case for URLs. Underscores in URLs were historically ignored by indexing bots, so hello_world could be treated as one word.

The style aLtErNaTiNg became popular as "mocking SpongeBob" after a viral meme from 2017 from the SpongeBob SquarePants series. It is used to mock someone's statement.

In the language Lisp it was traditionally used kebab-case for symbols as early as the 1950s — it was one of the first programming languages with its own naming convention.

The standard PEP 8 (2001) unified the code style in Python. The choice of snake_case for variables and SCREAMING_SNAKE_CASE for constants is the official recommendation of the language's creators.

Quick summary — which style where?

Context Recommended style
URLs / SEO slugskebab-case
CSS classeskebab-case
JavaScript variablescamelCase
React components / C# classesPascalCase
Python variables and functionssnake_case
ConstantsSCREAMING_SNAKE_CASE
Java packagesdot.case
Article titles (EN)Title Case
Regular sentences in UISentence case

Want to quickly change the text format? Use our tool Text Case Converter . Supports all the above styles and works directly in the browser.