Unix Timestamp Converter
Translate between Unix epoch seconds and readable dates. Fill in either side: paste a timestamp to see the date, or type a date to get its timestamp back, and the result shows the UTC value, the local value and the units so you never confuse milliseconds with seconds.
Input
Conversion result
Ready — paste some input or load the sample.
100% Client-Side · Privacy First. This tool runs entirely inside your browser. Nothing you type is uploaded, logged or sent to a server — you can even use it offline.
Overview
A Unix timestamp is the number of seconds since 1 January 1970 UTC, and it is the storage format of choice for anything that has to be compared or sorted. The hard part is rarely the arithmetic but the unit and the timezone. The same number can mean seconds, milliseconds or microseconds depending on the API that produced it, and a value with thirteen digits is milliseconds while one with ten digits is seconds. The timezone question matters just as much: the underlying instant is the same everywhere, but the wall clock time differs, and almost every bug in this area comes from rendering a UTC value as if it were local time. This converter takes a timestamp in any of the three common units, detects which one it is from the digit count, and shows you the UTC time, the local time on your machine, the ISO 8601 form, the day of the week and how long ago or how far ahead the instant is. It also works in reverse, turning a readable date into the timestamp your API expects.
How to use the unix timestamp converter
- 1Paste a timestamp such as 1767225600 into the input panel.
- 2Check the unit that was detected from the number of digits.
- 3Compare the UTC and the local value, especially when the timestamp falls near midnight.
- 4Paste a date string into the date field to convert it the other way.
- 5Read the notes for the relative description, which is handy when you are looking at a log line.
- 6Compare the unit that was detected with the unit that your system uses, because a mismatch is the usual cause of a timestamp that looks wrong.
Cheat sheet
The syntax you will use most, and what each part does.
| Pattern | What it means |
|---|---|
10 digits |
Seconds. The value 1767225600 is a timestamp in seconds. |
13 digits |
Milliseconds. The same instant becomes 1767225600000. |
16 digits |
Microseconds, which is what some tracing and database systems store. |
ISO 8601 |
2026-01-01T00:00:00.000Z is the unambiguous machine form, always in UTC with a Z suffix. |
Local time |
The wall clock time in the timezone of this device, which is why two people can see different values for one timestamp. |
Negative values |
Dates before 1970 are negative and are perfectly valid — -1 is one second before the epoch. |
Common mistakes
A timestamp is off by a factor of 1000.
Seconds were used where milliseconds were expected, or the other way round. The unit detected from the digit count is shown in the notes.
The date is off by a day.
A UTC value was rendered as local time, or the timezone of the server was assumed to be the timezone of the reader.
new Date(timestamp) gives the wrong answer.
In JavaScript the Date constructor expects milliseconds. Pass seconds times 1000, or use the seconds and milliseconds fields shown here.
A scheduled job fires at the wrong hour.
Cron and systemd evaluate the schedule in the timezone of the daemon, not UTC. The local value shown here tells you what your machine would display.
Worked examples
A seconds timestamp
1767225600
The UTC ISO timestamp, the local time on this device, the weekday and the relative distance from now.
A date in the other direction
2026-01-01
The matching seconds and milliseconds values, ready to paste into an API call.
Frequently asked questions
How does the tool know whether the value is in seconds or milliseconds?
It counts the digits. A ten digit number is seconds, a thirteen digit number is milliseconds and a sixteen digit number is microseconds, which is the convention that almost every system follows.
Why do the UTC and the local time differ?
A Unix timestamp has no timezone at all. It counts the seconds since the epoch in UTC, and the local value is that same instant rendered in the timezone of your browser.
Is a timestamp a safe way to store dates?
It is unambiguous and it sorts correctly, which makes it a good key. It is a poor choice for a calendar date though, because a birthday on the first of January is the same moment in every year and a timestamp cannot express that.
Does this run on my machine?
Yes, the conversion happens in the browser, so a timestamp from an internal system never reaches a public service.
What happens with a negative timestamp?
It is a date before 1970, the year the epoch was defined. The tool shows it in the same format as any other value, so you can see exactly how far back it goes.
Why is my timestamp off by a factor of one thousand?
One side is in milliseconds and the other in seconds. The unit that was detected is printed in the output, so compare it with the unit that the system that produced the value uses.
Can I convert an ISO 8601 date?
Yes, paste an ISO string such as 2026-01-01T00:00:00Z and the tool returns the matching epoch value as well as the UTC and the local rendering of it.
Do I have to worry about leap seconds?
In practice, no. Unix time ignores leap seconds, so a timestamp maps to a civil date and back without any drift, and the value is exactly what a database or an API will give you.
Why is the same timestamp a different date for two colleagues?
Because they are in different timezones. The UTC value is the same everywhere, and that is the one to write down when you need a value that everyone agrees on.
Can I convert a timestamp in milliseconds?
Yes, the unit is detected from the number of digits and the result is the same date. A thirteen digit number is milliseconds and a sixteen digit number is microseconds.
What is the epoch exactly?
The first of January 1970 at midnight UTC. Every Unix timestamp counts the seconds since that moment, and the count is negative for anything before it.