Text Tools

Dot Case Converter

Use this free Dot Case Converter to turn any label, heading, or identifier into clean dot.case. It splits camelCase and PascalCase, lowercases every letter, and joins the words with single dots, which suits config keys, translation labels, and namespaced properties. No sign-up required.

Splits camelCase & PascalCase Runs in Browser 100% Free

Why You Are Here

You are writing translation keys. Internationalization files in react-i18next, Rails locales, and Java resource bundles nest labels with dot notation like auth.login.title, and typing a batch of them consistently by hand is slow and error-prone.

You are naming config or namespaces. Java .properties files, logging categories, and feature flags commonly use dot-delimited keys, and you want a set of them normalised to one clean style.

You have text in the wrong style. A list of headings, snake_case keys, or spaced labels that all need to become dot.case before they go into a configuration file or a data model.

What This Tool Does

The Dot Case Converter rewrites any text as dot.case, meaning all lowercase letters joined by single dots. Paste a word, a phrase, or an existing identifier, click convert, and it returns output ready to drop into config keys, translation labels, or namespaced paths.

Everything runs in your browser. Nothing is uploaded or stored.

dot.case Is a Path, Not an Identifier

This is the difference that sets dot.case apart from its siblings, and the single most useful thing to understand before you use it. The dot almost always means something.

A dot is a path separator in most languages

In JavaScript, Python, Java, and many others, a.b.c means the c inside b inside a. So a dot.case string does not read as one name, it reads as a route through a structure.
That makes dot.case a notation, not a variable name

You would never name a single variable order.total, because the parser would read it as the total field of an order object. Instead you use order.total to reach that field, or as a flat key in a config file that a library expands into that shape.
Which is exactly why config and i18n systems use it

Those systems treat the dots as structure. A key like auth.login.title is automatically turned into a nested object, auth then login then title, without you writing any braces. The dot is doing real work, not just separating words.

What Happens to Each Kind of Input

Predict the output before you paste. The dot-specific rows at the bottom are the ones worth checking, since dots in the input are handled differently from every other character.

Input pattern

You type You get What happened

Plain words

Order Total

order.total

Spaces to dots, all lowercase

camelCase

getUserData

get.user.data

Split at each capital letter

PascalCase

ProductCategory

product.category

Split at each capital, lowercased

snake_case

max_retry_count

max.retry.count

Underscores to dots

kebab-case

main-nav-item

main.nav.item

Hyphens to dots

Existing dots

app.config.key

app.config.key

Dots kept as boundaries

Numbers

user2024report

user2024report

Digits stay attached in place

Symbols

User-Login@2024

user.login.2024

@ removed, hyphen to dot

Doubled dots

app..config

app.config

Run of dots collapsed to one

Messy spacing

  First   Name  

first.name

Extra spaces collapsed, edges trimmed

Existing dots are treated as boundaries, not text

A run of dots collapses to one and edge dots are trimmed, so the output is always clean dot.case. If your input already carries meaningful dots, such as a version number or a domain, check the result, since those dots are read as word breaks like any other.

dot.case in Translation Keys

The place most developers meet dot.case every day, and the clearest reason the format exists.

Framework How the key is used

react-i18next

t('auth.login.title')

Rails I18n

en.auth.login.title in a YAML tree

Java ResourceBundle

auth.login.title in a .properties file

Vue I18n

$t('auth.login.title')

The dots build the tree

auth.login.title and auth.login.subtitle group together under auth, then login. The library reads the dots and nests the labels for you, so a flat list of dot.case keys becomes a structured translation file.

Consistency is what makes lookups work

A lookup for auth.login.title fails silently if the key was actually saved as authLogin.title or auth_login_title. Running every key through one converter removes that whole class of missing-translation bugs.

dot.case in Config and Namespaces

Beyond translations, dot.case is the default written form for a large family of configuration and naming systems.

Context Typical dot.case key

Java properties file

server.port, spring.datasource.url

Logging categories

com.example.service.PaymentController

Feature flags

checkout.new.flow.enabled

Analytics events

button.signup.clicked

Spring relaxed binding is a good example

Spring treats app.datasource.url, APP_DATASOURCE_URL, and app-datasource-url as the same property. dot.case is the canonical written form, and the framework maps the environment-variable and kebab spellings back to it. Writing your config in dot.case keeps it aligned with the documentation.

Where Dots Are Risky

The dot is useful because it means something, and that same meaning makes dot.case the wrong choice in a few specific places. This is the section competitors skip, because it limits where the tool applies.

File name stems

A file called report.final.v2.csv has, as far as many tools are concerned, an extension of .csv and confusing middle segments. Dots in a file stem invite mis-parsing. Use snake_case or kebab-case for file names and keep the single real extension.
HTML class names and CSS selectors

A dot starts a class selector in CSS, so an element with class="order.total" cannot be targeted as .order.total, which CSS reads as an element carrying both the order and total classes. Never use dot.case for class names; kebab-case is the convention there.
Anything used as a direct identifier

You cannot name a variable, function, or column order.total, because the language reads the dot as access into a structure. dot.case belongs on keys and paths, not on the identifiers themselves.

Do not use dot.case for

Use instead

Variable and function names

camelCase or snake_case

HTML class names

kebab-case

File name stems

snake_case or kebab-case

URL slugs

kebab-case

dot.case and Its Siblings

If dot.case is not what your target expects, one of these usually is. The closest lower-case sibling is snake_case, which suits the same keys when the system wants underscores instead of dots; you can switch a batch of names to it with the Snake Case Converter.

Style

Example Separator Casing Best for

dot.case

user.login.count

Dot

all lowercase

Config keys, i18n, paths

snake_case

user_login_count

Underscore

all lowercase

Python, Ruby, SQL

kebab-case

user-login-count

Hyphen

all lowercase

URLs, CSS, slugs

camelCase

userLoginCount

none

mid-word capitals

JavaScript, Java

CONSTANT_CASE

USER_LOGIN_COUNT

Underscore

all uppercase

Constants, env vars

Which Case to Use Where

A quick map for when dot.case is the right answer and when it is not.

Situation

Convention to use

Translation and i18n keys

dot.case

Config properties and namespaces

dot.case

Object or property paths in data

dot.case

Variable and function names

camelCase or snake_case

Database tables and columns

snake_case

URLs, slugs, and CSS classes

kebab-case

Constants and environment variables

CONSTANT_CASE

Match the system you are feeding

dot.case is defined by its destination. If the config loader, translation library, or data model expects dot-delimited keys, use it. If the destination is code that will read the value as a name, it is the wrong format.

Common Mistakes to Avoid

Using dot.case for Variable or Class Names

dot.case output is a path, not a name. A variable called order.total will not parse, and a CSS class called order.total cannot be selected as .order.total. Keep dot.case for config keys, translation labels, and data paths, and use camelCase, snake_case, or kebab-case for anything the language reads as an identifier.
Mixing Key Styles in One Translation File

A lookup for auth.login.title fails silently when the key was saved as authLogin.title or auth_login_title, and a missing translation often ships unnoticed. Convert every key through one converter so the whole file uses a single dot.case style and every lookup resolves.
Losing Meaningful Dots in the Input

When the text you paste already contains structural dots, such as a version like 1.2.3 or a domain, the converter reads each dot as a word break and may not preserve the grouping you intended. Check the output whenever the input already uses dots, and adjust by hand if the segmentation is wrong.

Quick Reference

Item Detail

Separator

Single dot

Letter casing

All lowercase

Splits on

Spaces, hyphens, underscores, capital-letter boundaries

Existing dots

Treated as word boundaries

Numbers

Preserved in place

Symbols

Removed

Doubled dots

Collapsed to one

Edge dots

Trimmed

Best for

Config keys, i18n labels, object paths, namespaces

Not for

Variable names, CSS classes, file stems, URLs

Runs

100% in the browser, nothing uploaded

Frequently Asked Questions

What is a dot case converter?

A dot case converter is a free online tool that rewrites any text into dot.case, meaning all lowercase letters joined by single dots. You paste a phrase, label, or identifier, and it returns a clean dot.case version ready for config keys, translation labels, and namespaced paths. It splits camelCase and PascalCase automatically.

How does it handle camelCase and PascalCase?

It detects the capital letters that mark word boundaries and splits the text there before lowercasing. So getUserData becomes get.user.data and ProductCategory becomes product.category, which lets you move a name from another convention into dot.case without retyping it.

What is dot.case actually used for?

It is the standard written form for keys where the dots denote structure. Internationalization libraries turn auth.login.title into nested labels, and configuration systems such as Java properties files and Spring expand dot-delimited keys into a tree. The dots build hierarchy rather than just separating words.

Can I use dot.case for a variable name?

No. In most languages a dot means access into a structure, so order.total reads as the total field of an order object rather than a single name. Use dot.case for keys and paths, and use camelCase or snake_case for the variable and function names themselves.

What happens to numbers, symbols, and existing dots?

Numbers are preserved in place, and other symbols are removed. Existing dots are treated as word boundaries, any run of dots collapses to a single dot, and leading or trailing dots are trimmed, so the output is always clean dot.case.

Is dot.case the same as snake_case or kebab-case?

No. All three are lowercase, but dot.case joins words with dots, snake_case with underscores, and kebab-case with hyphens. dot.case suits config and translation keys, snake_case suits Python and databases, and kebab-case suits URLs and CSS.

Does the converter keep my text private?

Yes. The conversion runs entirely in your browser using client-side JavaScript, so nothing you paste is uploaded to a server or stored in a database. That makes it safe for internal config keys and labels you would rather not send anywhere.

When should a developer reach for this dot case converter?

Reach for this dot case converter whenever you are building or normalising a set of dot-delimited keys, such as a translation file, a properties file, or a namespace of feature flags. It turns a batch of mixed-style labels into consistent dot.case in seconds, which prevents the silent lookup failures that inconsistent keys cause.

Comments

Login to leave a comment

No comments yet. Be the first to comment!