Open the app

Can you count calories without the internet

Phone screen-up and a thermal mug on a train window table, blurred landscape outside the window

The answer varies depending on the part of the application. Photo recognition does not work offline for anyone, but the diary and reference database work perfectly well.

What requires a network and what does not

FunctionNetwork requiredWhy
Recognizing a dish from a photoYesThe model runs on a server, not on the phone
Parsing a menu pageYesSame as above
Barcode searchDependsScanning the code is local, searching for the product is in the database
Diary and historyNoEntries are stored in the browser storage
Calorie reference guideNo, if pre-loadedThis is static data
Calculating daily intake and macrosNoArithmetic

Why recognition cannot work offline

The model that identifies a dish in a photo and estimates portion weight consists of several gigabytes of weights and calculations that an average phone would take tens of seconds to process. It physically does not fit into the application and cannot run on the device.

There are smaller models that work on a phone, but they solve a different task: distinguishing pizza from salad in a list of a hundred categories. They cannot estimate portion weight, distinguish sour cream from mayonnaise in a dressing, or account for oil in a stir-fry — and that is exactly what the numbers depend on. A breakdown of where the limits of these capabilities lie is available separately: why AI confidently provides incorrect figures.

Barcode: half the work is done offline

Here it is worth distinguishing between two steps that the user perceives as one.

Scanning the code — recognizing the bars with the camera — happens in the browser, locally, and does not require a network. This results in a number: thirteen digits of EAN-13.

Searching for the product by this number — is a request to the database. This is what requires a network, because the database resides on a server and contains millions of items.

The only way to bypass the second step is to put part of the database on the device in advance. That is how it is done — with a volume limitation. Here, for example, a package of ten thousand products is loaded into the browser and updated once a day; when there is no network, the search is performed against it. Ten thousand is not the entire database, but a significant portion of what is actually on the shelf.

What a barcode can tell you about a product and what it cannot is analyzed separately: barcode on packaging.

The diary always works

Entries about what you have eaten do not require a network by their nature: these are your data, and they live in the browser storage on the device. You can add a dish, view the daily total, or see the week while on a plane.

A network is needed in two cases: when you need to recognize something new and when you need to transfer the diary to another device.

How the application opens without a network at all

This is handled by a mechanism built into browsers — a service worker. Upon the first visit, it saves the application files to the device, and subsequent opening happens from the local copy, not from the network. This is precisely why a web application added to the home screen launches in airplane mode just like a regular one. More details — an application that does not need to be installed.

It is easy to check this on any service: open it once with a network, then turn on airplane mode and open it again. A white screen or an error means that offline mode is not provided there at all.

What to do when traveling without a connection

A practical guide for planes, trains, and traveling abroad without roaming:

Why there are almost no fully offline counters left

They used to exist and work: the product database fit into the application, the search was performed against it, and the internet was only needed for updates. They disappeared not because of technology, but because of data — the composition of products changes, the assortment is updated, and a local database becomes obsolete faster than a user can update the application. Plus, recognition by photo, which is impossible offline in principle.

A reasonable compromise today looks like this: the interface and diary are local, reference data is local with updates, and recognition is on the server. This is exactly what most do.

Count it from a photo

Frequently asked questions

Does food recognition via photo work without an internet connection?
No. The model weighs several gigabytes and runs on a server; it does not fit on a phone. Smaller on-device models can distinguish food categories, but they cannot estimate portion weight or composition.
Can I scan barcodes offline?
Reading the code itself with the camera happens locally and does not require a network. Searching for a product by code accesses a database—offline, it only works using a pre-downloaded product package.
What should I do with entries while on a plane?
The diary works without a network: entries are stored in the browser's storage. It is more convenient to take photos of new meals in advance and process them later—an estimate based on a recent photo is more accurate than recalling from memory two days later.

Read next

This article is for general information. It is not medical advice, a diagnosis, or a prescription for treatment or a diet, and it does not replace a consultation with your doctor. If you have a health condition, are pregnant, take medication, or follow a diet prescribed to you, decisions about food belong with your doctor.

Figures from regulations, guidelines and studies are given as they stood when this article was prepared and may since have changed; check them against the primary sources. This article is not advertising, an offer, or individual advice, and neither the author nor the site owner is responsible for decisions taken on the basis of it.