Convert Unix timestamps to readable dates and back — real-time updates
The Unix timestamp (or Epoch time) is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. JavaScript uses milliseconds (Date.now()), Firebase RTDB uses milliseconds, while many APIs use seconds. Knowing which unit you're using is key to avoiding 1000x bugs.
To recognize the format: a 10-digit timestamp is in seconds (e.g. 1750000000), a 13-digit one is in milliseconds (1750000000000). This converter automatically detects the format.
How does Firebase handle timestamps?
Firebase RTDB and Firestore use different approaches. RTDB uses firebase.database.ServerValue.TIMESTAMP which stores Unix milliseconds. Firestore uses firebase.firestore.FieldValue.serverTimestamp() which produces a Timestamp object with .toDate() and .toMillis() methods.
This tool converts a Unix timestamp to a readable date and back, in real time, supporting milliseconds, time zones, and ISO 8601 format — useful for debugging and development.
It depends on the system that generates it: Unix/Linux and many databases use seconds, while JavaScript uses milliseconds. The tool supports both formats to avoid conversion errors.
You can enter the date and time in the required format and the tool immediately calculates the corresponding Unix timestamp, also handling the selected time zone.
Yes, in addition to standard conversion to a readable date, the tool also supports ISO 8601 as both output and input, common in many APIs and logging systems.