Firestore Document Size Calculator

Calculates the size of your document in the Firestore DB.

Firestore Document name size

Write the name of your document in format users/jeff/tasks/my_task_id

The size of the document name would be approximately

0B

Firestore Document body size

Paste your document

The size of the document body would be approximately

0B

How it works

  • Array - The sum of the sizes of its values
  • Boolean - 1 byte
  • Bytes - Byte length
  • Date and time - 8 bytes
  • Floating-point number - 8 bytes
  • Geographical point - 16 bytes
  • Integer - 8 bytes
  • Map - The size of the map, calculated the same way as document size
  • Null - 1 byte
  • Reference - The document name size
  • Text string - Number of UTF-8 encoded bytes + 1
More info how it's calculated can be found in Firestore docs