Skip to content
GuidesChecked 21 November 2026

3,141,632 .env.example files counted

Forty numbers on how developers write environment config files, counted on 21 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

File names

Eight numbers on how many public environment example files exist, by file name.

3,141,632 files have .env.example in the name, and 166,144 have .env.production in the name.

The .env.example file leads, and it is 18.9 times as common as .env.production.

Environment file names
StatisticNumber
.env.example files3,141,632
.env.production files166,144
.env.sample files97,280
.env.development files90,496
.env.template files64,768
.env.local.example files56,000
.env.test files53,376
example.env files51,136

Example file

Eight numbers on the names that .env.example files list.

The name port is in 46.9 in 100 .env.example files, and smtp_host in 3.1 in 100.

Port leads, and api_key and base_url follow at about one file in three.

Names in .env.example
StatisticIn 100
Port46.9
Api key35.1
Base url34.9
Database url19.8
Jwt secret12.8
Secret key12.7
Debug14.7
Smtp host3.1

Sample file

Eight numbers on the names that .env.sample files list.

The name port is in 48.2 in 100 .env.sample files, and smtp_host in 1.3 in 100.

Port leads, and api_key is named about three times as often as jwt_secret.

Names in .env.sample
StatisticIn 100
Port48.2
Api key22.7
Base url14.2
Database url8.7
Debug8.0
Jwt secret7.8
Secret key11.6
Smtp host1.3

Production file

Eight numbers on the names that .env.production files list.

The name base_url is in 30.4 in 100 .env.production files, and smtp_host in 2.8 in 100.

Base url and port lead, and the name api_key is in about one file in seven.

Names in .env.production
StatisticIn 100
Base url30.4
Port24.5
Api key13.5
Database url8.6
Jwt secret8.2
Debug7.2
Secret key6.9
Smtp host2.8

Development file

Eight numbers on the names that .env.development files list.

The name port is in 24.9 in 100 .env.development files, and smtp_host in 0.8 in 100.

Port and base_url lead, and fewer than one development file in a hundred names smtp_host.

Names in .env.development
StatisticIn 100
Port24.9
Base url23.9
Api key6.2
Debug5.5
Database url5.2
Jwt secret4.4
Secret key3.5
Smtp host0.8

What is in the file

Forty numbers in one file

Every figure sits in its own CSV row, with its group and unit alongside.

Five groups

File names, then example, sample, production and development files.

Counts, not secrets

The page holds totals and shares only, and no value from any file is shown.

Easy to cite

Use one figure or the whole set of forty, with this page named and the read date given.

How the files were counted

One code search for each file name and each setting name.

Fix the file name

Each name query was held to one file name, so every share is divided by a known total.

Match the name

One query tied a file name to a setting name, and the count of matching files came back.

Retry a partial reply

Each reply marked partial was fetched again, at most three more times, after any rate limit had cleared.

Divide in code

Code divided each name total by its file total and checked each share before printing it.

What changes between file types

No single word wins everywhere: the top place goes to port in .env.example, .env.sample and .env.development files; base url in .env.production files. The steadiest word is smtp host, holding between 0.8 and 3.1 in 100 across all four file types. The words port and base url hold a top three place in every file type, .env.sample files and .env.production files included.

The word secret key swings the most in rank, fourth in .env.sample files and seventh in .env.example files. Read across the base url row and it runs 34.9 in .env.example files, 14.2 in .env.sample, 30.4 in .env.production and 23.9 in .env.development. The clearest lead is in .env.sample files, where port stands at 48.2 in 100 against api key at 22.7.

Share of files that hold each word, in 100
Word.env.example.env.sample.env.production.env.development
Port46.948.224.524.9
Base url34.914.230.423.9
Api key35.122.713.56.2
Database url19.88.78.65.2
Debug14.78.07.25.5
Secret key12.711.66.93.5
Jwt secret12.87.88.24.4
Smtp host3.11.32.80.8

What these numbers leave out

  • These are files and not projects. A file copied into many repositories counts once per copy. Popular starters can lift a share well above real use.
  • Many public environment files are samples or test fixtures, so a share describes files in code and not live products.
  • The match is made anywhere in the file text, so a name inside a comment counts as much as a real setting.
  • The .env.example total is in the millions and the search rounds totals that large, so every share in that group is approximate.
  • The search ignores some punctuation, so a name written with a dash or in capitals may be counted with the form used here.
  • No filter by file age was available, so each total blends fresh files with some left alone for many years.
  • Twelve more counts were read and then dropped, four file names and eight names, so that each group shows exactly eight.
  • One file can contain two of these names, so summing their shares counts it twice and overstates the result.
  • A file name is a habit and not a rule, so settings kept under another file name are not counted here.
  • Every name searched is English, so settings written in any other language are mostly missing from these shares.
  • A share shows which files list a name, and it cannot show what value that name holds in real use.
  • No project, author or host is named in this page, and no value from any file is read.
  • A file name search matches any name that contains the text, so .env.example also counts longer names around it.

What people ask about environment files

How many public .env.example files are there?

3,141,632 public files have .env.example in the name.

How many public .env.production files are there?

166,144 files have .env.production in the name.

How many example files list a port?

The name port is in 46.9 in 100 .env.example files.

How many example files list an api key?

The name api_key is in 35.1 in 100 .env.example files.

How many example files list a database url?

The name database_url is in 19.8 in 100 .env.example files.

How many example files list a mail host?

The name smtp_host is in 3.1 in 100 .env.example files.

How many sample files list a secret key?

The name secret_key is in 11.6 in 100 .env.sample files.

How many production files list a base url?

The name base_url is in 30.4 in 100 .env.production files.

How many production files list an api key?

The name api_key is in 13.5 in 100.

How many development files list a debug setting?

The name debug is in 5.5 in 100 .env.development files.

How many development files list a jwt secret?

The name jwt_secret is in 4.4 in 100.

May a page quote these figures?

Yes, with this page named and the read date. Every figure is one of the 40 rows in environment-file-statistics-2026-11.csv, so a reader can check it.

Hear what users want in their own words

Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.