Unix Timestamp Difference Calculator

Paste a start and end timestamp to measure the time between two events. Each value can use a different unit.

Decimals and negative values are supported. Your timestamps stay in this tab.

Timestamps to compare

How the difference is calculated

Both values are converted to nanoseconds before the start is subtracted from the end. The signed totals go negative if the end comes first. The day and clock display always shows the size of the gap, using 24-hour days.

Auto-detect uses digit count. Select a unit directly for small values or whenever your log or API documents the unit. For example, 1000 milliseconds and 1 second describe the same instant. The UTC dates in the result show how each input was read.

For one timestamp, use the Unix timestamp converter. For a column of timestamps, use the CSV timestamp converter.

Related Tools

More free tools for developers debugging timestamps, schedules, and text changes.