How to Convert a Unix Timestamp
A Unix timestamp counts seconds since 1 January 1970 UTC. To convert one, paste it into a timestamp converter and read the UTC and local results. Check the digit count first: ten digits are seconds, thirteen are milliseconds. Feeding milliseconds to a seconds-based converter puts the date tens of thousands of years into the future.
Unix Timestamp Converter
Convert between Unix timestamps and human dates.
A Unix timestamp is a single number with no time zone attached — it is an instant, counted in seconds from the epoch at midnight UTC on 1 January 1970. That simplicity is the point: two systems anywhere in the world agree on what it means without negotiating a format.
Nearly every problem with timestamps comes from one of two places: the unit, and the display. The number itself is unambiguous; whether it counts seconds or milliseconds is not, and neither is the time zone you render it in.
Step by step
-
Count the digits
A ten-digit number is seconds and lands in the present era. Thirteen digits is milliseconds. Sixteen is microseconds, which some databases and tracing systems use. Getting this wrong is the single most common timestamp bug.
-
Paste it into the converter
The result is shown in both UTC and your own local time. UTC is the value the timestamp actually encodes; local time is a rendering of it for you.
-
Decide which one you need
Use UTC when comparing against logs, other systems or anything shared. Use local time only when the answer is for a person in a known place. Storing local time is how the ambiguity gets in.
-
Convert a date back to a timestamp
Enter the date and read the epoch value. Be explicit about the time zone you mean, because a date with no zone is interpreted in yours, and that shifts the number by hours.
-
Watch for zero and negative values
A timestamp of 0 is the epoch itself — 1 January 1970 — and usually means an uninitialised field rather than a real date. Negative values are legal and represent dates before 1970.
Example
The same instant, in the two units systems most often confuse.
Timestamp
1754521200 (10 digits, seconds)
1754521200000 (13 digits, milliseconds)
Result
7 Aug 2025, 00:00:00 UTC
7 Aug 2025, 00:00:00 UTC
Read as seconds, the 13-digit value
would land in the year 57 000.
Frequently asked questions
Is my timestamp in seconds or milliseconds?
Why does my date look a few hours off?
What is the 2038 problem?
Do timestamps account for leap seconds?
Should I store dates as timestamps?
Tools used in this guide
All tools →- Unix Timestamp Converter Convert between Unix timestamps and human dates. In your browser
- JWT Decoder Read a JSON Web Token header, payload and expiry. In your browser
- Number Base Converter Convert numbers between any bases from 2 to 36. In your browser
- Date Extractor Find dates written in any common format. In your browser
- JSON Formatter Beautify, validate and sort JSON with precise error messages. In your browser
Related guides
All guides →Last reviewed .