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.
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.
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.
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.
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 |
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.
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.
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.
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
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.
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.
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 |
