TimeTools

TOOL 04

Unix timestamp converter

Epoch time is the number of seconds since 1 January 1970 UTC. Convert it to a date, or go the other way, without opening a terminal.

Current epoch time

Seconds since 1970-01-01T00:00:00Z, updated every second.

—

UTC seconds

Seconds or milliseconds?

Unix time is normally counted in seconds. JavaScript and some APIs use milliseconds, which is why you will see 13-digit values such as 1795300000000. The converter accepts both: enter a 13-digit value and it is treated as milliseconds.

Why the date is shown in UTC and local time

An epoch value is an instant, not a local clock reading. The same number is 09:00 in London and 18:00 in Tokyo. Showing UTC first keeps logs unambiguous; the local line is there so you can recognise the moment.

The 2038 problem

Systems that store epoch time in a signed 32-bit integer run out of range at 03:14:07 UTC on 19 January 2038. Most modern platforms use 64-bit values, but older embedded devices and file formats may not. If you maintain one, test the boundary before 2038 rather than after.

Questions

Is the timestamp in seconds or milliseconds?

Both are accepted. Ten digits or fewer are seconds; thirteen digits are treated as milliseconds.

Can timestamps be negative?

Yes. Negative values are dates before 1970, and the converter handles them.

Why does my timestamp show the wrong hour?

The epoch value is correct; the local line depends on your browser's time zone. Compare the UTC line when checking logs.

What is epoch time used for?

Logs, APIs, databases and token expiry. It is compact, time-zone independent and easy to compare.