Home/Tools/Converters/Unix Timestamp Converter

Unix Timestamp Converter

Converters

Convert Unix timestamps to human-readable dates and times.

⚡ Instant🔒 Private, in your browser🆓 Free, no sign-up👥 For everyone
Your data never leaves your browser. We do not store inputs.

What Unix Timestamp Converter does

The Unix Timestamp Converter translates epoch time (seconds or milliseconds since January 1, 1970) into a readable date and time, and converts a chosen date back into its Unix timestamp. It's a staple for reading raw timestamps out of log files, API responses, or database records without doing the math by hand — all calculated instantly in your browser.

FV
Reviewed by the FreeToolsVerse team · Last updated · How we check our tools

Features and benefits

  • Converts in both directions from one box: timestamp to date, or date to timestamp
  • Detects milliseconds automatically (values above 100 billion), so 10-digit and 13-digit timestamps both work
  • Shows the result in UTC, which is how timestamps are stored, so there is no local-time confusion
  • Accepts negative timestamps for dates before 1970

How to use Unix Timestamp Converter

  1. Type a Unix timestamp (for example 1704067200) to see its date and time in UTC
  2. Or type a date (for example 2024-01-01) to get its timestamp in seconds
  3. Press Convert or Enter; numbers above 100 billion are treated as milliseconds automatically
  4. Use "Use current time" to fill in the present timestamp

Who should use it

Made for everyone. Typical uses:

  • Reading a raw epoch timestamp from an API response or server log into an actual date
  • Converting a specific date and time into a Unix timestamp for a database query or script
  • Checking whether a timestamp value is in seconds or milliseconds by seeing which date it produces

Example

Converting the timestamp 1704067200 returns 2024-01-01 00:00:00 UTC. Typing the date 2026-10-05 returns 1791158400, and the millisecond value 1704067200000 returns the same date as 1704067200.

Limitations and accuracy

The result is always shown in UTC, so apply your own offset or use the Timezone Converter for a local time. A date typed with a time but no zone is read in your browser's local time, so add Z or an offset for a result that does not depend on where you are. Unix time ignores leap seconds, and microsecond or nanosecond values must be divided down to seconds or milliseconds first.

Accuracy: Conversions use well-known methods and are tested with real sample inputs. Check the output before you send or publish it.

Expert Tip

If a converted date looks impossibly far in the future, you're probably reading a millisecond timestamp as if it were seconds — that's an accidental factor-of-1000 error, and it throws the date thousands of years off, which makes the mistake easy to spot once you know to look for it.

Frequently asked questions

Is the Unix Timestamp Converter free to use?
Yes, completely free, with no sign-up.
Is my data uploaded anywhere?
No. The conversion uses JavaScript's date functions directly in your browser.
How does it tell seconds from milliseconds?
A whole number whose absolute value is above 100 billion is treated as milliseconds and divided by 1,000. Current timestamps in seconds have 10 digits and in milliseconds 13 digits. A millisecond value from before March 1973 would be read as seconds.
Does it show my local time or UTC?
It shows UTC only, because a timestamp is a moment that does not depend on a time zone. To see the same moment on a clock in another city, use the Timezone Converter.
What date does timestamp 0 represent?
January 1, 1970, 00:00:00 UTC, the Unix epoch. Negative numbers are earlier: -86400 is December 31, 1969.
What is the year 2038 problem?
The number 2147483647, which is 03:14:07 UTC on 19 January 2038, is the largest value of a signed 32-bit integer. Systems that store time in 32 bits overflow one second later. This tool is not affected.

Unix Timestamp Converter: the complete guide

What a Unix timestamp is

A Unix timestamp is a count of the seconds that have passed since 00:00:00 UTC on 1 January 1970, a moment called the epoch. It contains no time zone, which makes it a convenient way for databases, logs and APIs to store an exact moment. A few anchors help you read them: 0 is the epoch itself, 1704067200 is 00:00:00 UTC on 1 January 2024, 1767225600 is the start of 2026, and a negative number such as -86400 is a date before 1970, in this case 31 December 1969. The Unix Timestamp Converter shows what any of these numbers means in plain language.

How the tool reads your input

There is a single box and a Convert button, and pressing Enter does the same thing. What you type decides the direction.

  • A whole number is treated as a timestamp. The result is shown as "YYYY-MM-DD HH:MM:SS UTC".
  • A number above 100 billion is assumed to be in milliseconds and divided by 1,000. So 1704067200000 gives the same date as 1704067200.
  • Anything else is read as a date. The result is the timestamp in seconds. For example 2024-01-01 gives 1704067200, and 2026-10-05 gives 1791158400.
  • Use current time fills the box with the present timestamp in seconds, ready to convert.

Dates without a time zone

When you type a date, the browser decides which time zone to use, and the rule is subtle. A date on its own, such as 2024-01-01, is read as midnight UTC. A date with a time but no zone, such as 2024-01-01 12:00 or 2024-01-01T12:00:00, is read in your own local time zone, so the same text gives different timestamps for people in different places. To get an answer that does not depend on your location, add a Z or an explicit offset, as in 2024-01-01T12:00:00Z or 2024-01-01T12:00:00+05:00.

Seconds, milliseconds and longer numbers

Current timestamps in seconds have ten digits, and JavaScript, Java and many web APIs use milliseconds, which have thirteen. The tool handles both. A sixteen-digit microsecond value or a nineteen-digit nanosecond value from some databases is not recognised: the first shows a date tens of thousands of years away and the second returns an out-of-range message, so divide by 1,000 or 1,000,000 first. That distance is a useful warning sign: a date that looks absurd almost always means a unit mix-up. The automatic rule also has one edge. A millisecond value from before early March 1973 is smaller than 100 billion, so it would be read as seconds.

Numbers worth knowing

1700000000 is 22:13:20 UTC on 14 November 2023, a round number people like to mark. 2147483647 is 03:14:07 UTC on 19 January 2038, the largest value that fits in a signed 32-bit integer. One second later, systems that still store time in 32 bits overflow, which is known as the year 2038 problem. This browser tool is not affected, and 2147483648 simply converts to 03:14:08 on the same day.

Where you will meet timestamps

Timestamps appear in server logs, database columns, API responses, cookies and the expiry claims of login tokens. The JWT Decoder already prints the issued and expiry times of a token as dates, while this tool is for the raw numbers you find elsewhere. To see the same moment on a wall clock in another city, use the Timezone Converter, and to check when a scheduled job fires, use the Cron Parser. The Days Between Dates calculator counts the days between two calendar dates.

Limits

Unix time ignores leap seconds, so every day is exactly 86,400 seconds long. The output is always in UTC, so a log line from a local machine needs its offset applied separately. JavaScript dates cover roughly 275,000 years either side of 1970, and a number outside that range returns an out-of-range message. Everything is calculated in your browser.

Learning resources

Explore more in Converters, read the guides and articles, or see how we test our tools.

Share This Tool