BrowsersIntermediateForm and autofill data

Firefox formhistory.sqlite

Firefox store of values typed into web forms and the search bar: field name, value, use count and first and last use in microseconds since 1970.

01Location

  • <Firefox profile>/formhistory.sqlite

02Questions it answers

  • What did the user type into forms or the search bar?
  • When was a value first entered and when was it last used?
  • How many times was the same value submitted?

03Format and versions

FormatSQLite 3 database. firstUsed, lastUsed and timeDeleted are microseconds since 1970-01-01 UTC (JavaScript Date.now() × 1000).
Applies toFirefox main branch as read on 2026-10-14. Default retention preference browser.formfill.expire_days = 180.

04Key fields

FieldWhat it tells you
moz_formhistory (id, fieldname, value, timesUsed, firstUsed, lastUsed, guid)One row per field name and value pair.
moz_deleted_formhistory (id, timeDeleted, guid)Deletion records; the source enables this table by default only on Android.
moz_sources (id, source) and moz_history_to_sources (history_id, source_id)Optional association of entries with a source string.

05Timestamps

FieldEncodingNote
firstUsed, lastUsedint64 µs since 1970-01-01 UTCAll entries written in one batch share the same 'now' value.
timeDeletedint64 µs since 1970-01-01 UTCPresent only where the deleted table is used.

Decode raw values with the Timestamp decoder and convert local wall-clock times with the Local time to UTC.

06Examination workflow

  1. Copy formhistory.sqlite with any -wal file.
  2. Convert firstUsed and lastUsed by dividing by 1,000,000 and sort by lastUsed.
  3. Group by fieldname to separate search-bar input from website form fields.
  4. Correlate lastUsed with places.sqlite visits to identify the site.

07Interpretation pitfalls

  • Entries older than the expire_days preference (default 180 days) are removed.
  • No URL is stored with the value; site attribution requires correlation.
  • Form history can be disabled (browser.formfill.enable); an empty table may reflect configuration.

09Sources

  1. Firefox source — toolkit/components/satchel/FormHistory.sys.mjs Mozilla (GitHub mirror) · checked 2026-10-14
  2. Firefox source — modules/libpref/init/all.js (browser.formfill.* defaults) Mozilla (GitHub mirror) · checked 2026-10-14
  3. Profiles — Where Firefox stores your bookmarks, passwords and other user data Mozilla Support · checked 2026-10-14