Unix timestamp converter
Convert timestamps to dates and back. Seconds and milliseconds are detected automatically, and local time and UTC are always shown together.
Current timestamp
Timestamp → Date
Date → Timestamp
Format: YYYY-MM-DD HH:mm:ss — trailing parts can be omitted
About Unix timestamps
A Unix timestamp counts the seconds elapsed since 1970-01-01 00:00:00 UTC. It carries no timezone, so one instant maps to the same number everywhere on earth — which is exactly why APIs and databases prefer it.
Seconds or milliseconds?
- 10 digits means seconds. Unix, PHP, Python and MySQL's
UNIX_TIMESTAMP()all use it. Ten digits last about 30 billion years. - 13 digits means milliseconds, used by JavaScript's
Date.now()and Java'sSystem.currentTimeMillis(). Sending three extra zeros to a backend that expects seconds is the classic bug here. - This tool infers the unit from the digit count and tells you which one it used.
Mind the year 2038 problem
Storing second-precision timestamps in a signed 32-bit integer overflows on 2038-01-19 03:14:07 UTC and wraps to a negative number. Use 64-bit integers, or just store milliseconds.
FAQ
The converted time is a few hours off — why?
Timezone. "Local time" follows your device (UTC+8 in mainland China), while UTC is the zero offset. Storing UTC and converting only at display time avoids almost all of this confusion.
Are negative timestamps supported?
Yes — they represent instants before 1970.
Why is the date field plain text instead of a date picker?
Native pickers behave differently across browsers and are awkward to paste into. Here anything shaped like 2026-10-16 09:30:00 is accepted.