Skip to content
Case Converter Online
en

Dot Case Converter

Convert words, camelCase or snake_case into dot.case. Handy for config keys, translation keys and namespaces.

Characters
0
Words
0
Sentences
0
Lines
0

Convert to

For code

Runs in your browser. Your text is never uploaded.

What dot.case is

dot.case puts a full stop between words and keeps every letter lowercase:

  • Database Connection Url becomes database.connection.url
  • homePageTitle becomes home.page.title
  • error_message_required becomes error.message.required

The dots usually express a hierarchy. In app.server.port, “port” belongs to “server”, which belongs to “app”.

How the converter works

The tool finds the words on each line, lowercases them and joins them with dots. Words can be separated by spaces, underscores, hyphens or slashes, or by the capital letters in camelCase and PascalCase names. Each line is converted on its own, so a list of keys stays a list.

Input Output
Database Connection Url database.connection.url
homePageTitle home.page.title
error_message_required error.message.required
checkout-button-label checkout.button.label

Where dot.case is used

  • Configuration files. Java .properties files and Spring Boot settings use keys such as spring.datasource.url and server.port.
  • Translation files. Keys such as checkout.button.label group text by screen and element, which keeps large translation files organized.
  • Package names. Java and Kotlin packages are lowercase words joined by dots: com.example.shop.
  • Logging and metrics. Logger names and metric names often follow the pattern service.component.event.
  • Feature flags and analytics events. Names such as billing.invoice.sent are easy to filter by prefix.

Why teams choose dotted keys

Dotted keys sort well. All keys that start with checkout. appear together in an alphabetical list, so related settings and strings stay side by side. Many tools also understand the dots and can show the keys as a tree.

Things to watch

  • Order matters. Go from general to specific: email.subject.welcome, not welcome.subject.email.
  • Multi-word parts need another style. If one level has two words, combine styles: checkout.shipping-address.label or checkout.shippingAddress.label. The converter puts a dot between every word, so join those parts by hand.
  • Not for code identifiers. In code, use camelCase or snake_case.

Dot Case Converter: questions and answers

What is dot case?

Dot case writes a multi-word name in lowercase with a full stop between the words, as in app.server.port or home.page.title. It is used mostly for keys in configuration and translation files.

Where is dot case used?

You will see it in Java properties files (spring.datasource.url), translation keys (checkout.button.label), logger names, feature flag names and Java or Kotlin package names such as com.example.app.

Can I use dot case for variable names?

No. In most programming languages the dot means 'access a property of an object', so user.first.name would be read as three nested lookups. Use dot case for keys stored as text, and camelCase or snake_case for variables.

How do I convert camelCase to dot case?

Paste the camelCase names into the box. The converter splits each name at its capital letters, lowercases the words and joins them with dots. homePageTitle becomes home.page.title.

More code and data tools

See all tools