Unix Timestamp Converter
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free Unix timestamp converter. Turn epoch seconds or milliseconds into a readable date in UTC and your time, or a date into a timestamp.
- Read as
- 0
- UTC
- 0
- Your time
- 0
- ISO 8601
- 0
- Timestamp (seconds)
- 0
- Timestamp (milliseconds)
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the Unix timestamp converter
From a timestamp to a date: paste a Unix timestamp. The converter works out whether it's in seconds or milliseconds and shows:
- the date and time in UTC,
- the date and time in your own time zone,
- the ISO 8601 form (such as
2023-11-14T22:13:20.000Z), which is the standard way to write dates in software and data.
Click Use the time now to fill in the current timestamp.
From a date to a timestamp: pick a date and time, choose whether it's in your time zone or UTC, and the Unix timestamp converter gives the timestamp in seconds and in milliseconds.
Everything is calculated in your browser.
What a Unix timestamp is
A Unix timestamp (also called epoch time or POSIX time) is the number of seconds since 00:00:00 UTC on 1 January 1970, a moment known as the Unix epoch. For example:
0is 1 January 1970, 00:00:00 UTC,1700000000is 14 November 2023, 22:13:20 UTC,2147483647is 19 January 2038, 03:14:07 UTC.
Timestamps are popular in software because they're a single number, the same everywhere in the world, easy to compare and sort, and free of time zone and daylight saving confusion. You'll find them in:
- API responses and webhooks,
- database records and exports,
- log files,
- analytics and tracking data,
- file and system metadata,
- JSON from apps and integrations.
Seconds or milliseconds?
Unix time is traditionally counted in seconds, but many systems, including JavaScript, Java and many APIs, use milliseconds, which are 1,000 times larger:
- seconds:
1700000000(10 digits for dates between 2001 and 2286), - milliseconds:
1700000000000(13 digits).
The Unix timestamp converter decides by size: numbers of 100,000,000,000 or more are treated as milliseconds, because as seconds they'd be thousands of years in the future. It shows which it used in "Read as". If you mistake one for the other, dates come out absurd, such as the year 55,800, or January 1970.
Some systems use microseconds (16 digits) or nanoseconds (19 digits). Divide those by 1,000 or 1,000,000 to get milliseconds first.
UTC and your time zone
A timestamp marks one exact moment, the same everywhere. How that moment is written depends on the time zone:
1700000000is 22:13:20 on 14 November 2023 in UTC,- the same moment is 17:13:20 in New York (UTC−5 in November),
- and 04:13:20 on 15 November in Dhaka (UTC+6).
The converter shows UTC and your own time zone, as set on your device. To see the same moment in other cities, use the time zone converter.
When converting a date to a timestamp, choose whether the date you entered is in your time zone or in UTC. Getting this wrong shifts the result by your offset from UTC, a common source of bugs that are off by a few hours.
ISO 8601
ISO 8601 is the international standard for writing dates and times: 2023-11-14T22:13:20Z. The T separates date and time, and Z means UTC. A time in another zone has an offset instead: 2023-11-14T17:13:20-05:00. ISO 8601 dates sort correctly as text, which makes them ideal for file names and spreadsheets. Structured data on websites, such as the dates in event schema, uses this format too.
Leap seconds
Unix time ignores leap seconds: every day is treated as exactly 86,400 seconds. That keeps calculations simple, and it's why Unix time is slightly different from a strict count of elapsed seconds. For almost all business and development purposes, it doesn't matter.
The year 2038 problem
Older systems store Unix time as a signed 32-bit number, which can count up to 2,147,483,647 seconds: 03:14:07 UTC on 19 January 2038. One second later, such systems overflow and jump back to 1901. Most modern systems use 64-bit timestamps, which won't run out for billions of years, but old software, embedded devices and some file formats may still be affected. Enter 2147483647 in the converter to see the moment.
Working with timestamps in spreadsheets
Spreadsheets don't understand Unix timestamps directly. To convert one in Excel or Google Sheets, divide the seconds by 86,400 (seconds in a day) and add the spreadsheet date for 1 January 1970:
= A2 / 86400 + DATE(1970, 1, 1)
Then format the cell as a date and time. The result is in UTC. For milliseconds, divide by 86,400,000 instead.
If you're working with a JSON export full of timestamps, the JSON formatter makes it readable, and the CSV to JSON converter turns it into a spreadsheet.
Common timestamp mistakes
- Mixing up seconds and milliseconds, giving dates in 1970 or far in the future.
- Treating a UTC time as local time (or the reverse), shifting results by hours.
- Storing local times without a time zone, which become ambiguous when clocks change.
- Assuming every day has 24 hours locally: days when clocks change have 23 or 25 hours in local time, though Unix time itself is unaffected.
- Rounding milliseconds away when exact ordering of events matters.
Everyday uses outside software
You don't have to be a developer to meet timestamps:
- Exports from booking, payment or email platforms sometimes show dates as long numbers.
- Analytics and ad platforms' raw data often uses timestamps.
- Automation tools (such as Zapier or Make) pass timestamps between apps.
- Website and server logs record each visit with a timestamp.
The Unix timestamp converter turns these numbers into dates you can read and use. The date calculator then counts days between them.
Timestamps in programming languages
If you work with code, these are the usual ways to get or convert a Unix timestamp:
- JavaScript:
Date.now()gives milliseconds;Math.floor(Date.now() / 1000)gives seconds;new Date(ms)turns milliseconds into a date. - Python:
time.time()gives seconds as a decimal;datetime.fromtimestamp(ts, tz=timezone.utc)turns seconds into a date in UTC. - PHP:
time()gives seconds;date('c', $ts)formats it as ISO 8601. - SQL: functions differ by database, such as
FROM_UNIXTIME()in MySQL andto_timestamp()in PostgreSQL. - Command line:
date +%sprints the current time in seconds on macOS and Linux.
Always check which unit a system expects. Passing seconds where milliseconds are expected, or the reverse, is one of the most common date bugs.
Negative timestamps
Dates before 1970 have negative timestamps: -86400 is 31 December 1969. Most modern systems handle them, but some older ones don't, so be careful with historical dates such as birth dates in very old records. The Unix timestamp converter accepts negative values, so you can check older dates the same way as recent ones.
Timestamps in file names and records
If you name files or records by date, prefer ISO 8601 (2026-11-12) for people and Unix timestamps for systems. ISO dates are readable and sort correctly; timestamps are compact and unambiguous. Many teams use both: an ISO date in the file name and a timestamp inside the data. Whichever you choose, record which time zone a date is in, or store everything in UTC, so nobody has to guess later.
A worked example
A bakery's online ordering system exports orders as JSON, with an ordered_at field such as 1700000000. The owner wants to know when a disputed order was placed. Pasted into the Unix timestamp converter, it's read as seconds and shows 14 November 2023, 22:13:20 UTC, which is 16:13:20 in Austin (UTC−6 in November), during closing time. The owner can show the customer that the order arrived after the 2pm cut-off for next-day delivery.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 00:00:00 UTC on 1 January 1970, used by software to record moments in time as a single number.
How do I convert a Unix timestamp to a date?
Paste it into the Unix timestamp converter. It shows the date in UTC and your time zone, and in ISO 8601 format.
Is my timestamp in seconds or milliseconds?
Ten digits usually means seconds; thirteen means milliseconds. The converter detects which and shows how it read it.
How do I get the current Unix timestamp?
Click Use the time now. The current time in seconds is filled in.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit number run out at 03:14:07 UTC on 19 January 2038. Modern 64-bit systems aren't affected.
Is the Unix timestamp converter free?
Yes. It's free with no sign-up, and it runs entirely in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.