Unix Timestamp Converter
Convert Unix timestamps to UTC or ISO 8601, compare local times across zones, and export up to 100 timestamp conversions as CSV.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Unix Timestamp Converter
Convert Unix timestamps to readable local, UTC, and ISO dates.
A Unix timestamp is the number of seconds since 1970-01-01 00:00:00 UTC, so 1700000000 is 14 November 2023, 22:13:20 UTC. Paste one here to see it in UTC, your local time, ISO 8601 and any time zone; the unit is detected from the digit count (10 digits seconds, 13 milliseconds). Pick a date to get its epoch seconds.
How to use Unix Timestamp Converter
Paste the value into the Unix timestamp field — up to 10 digits is read as seconds, 11–13 as milliseconds, 14–16 as microseconds and longer as nanoseconds — or press Now to load the current instant.
To go the other way, choose Local or UTC above the Date and time picker and pick a moment; it writes the matching epoch seconds straight back into the timestamp field.
Read seconds, milliseconds, local time, UTC, ISO 8601 and relative time. Open Compare time zones to see and copy the same instant across several zones.
Open Convert a list of timestamps to paste up to 100 Unix timestamps, one per line. Choose an input unit or leave Auto-detect selected, then copy or download the results as CSV.
Why use Unix Timestamp Converter
Seconds to nanoseconds auto-detected
The digit count picks the unit — seconds, milliseconds, microseconds or nanoseconds — so a JavaScript, Java, Python or Go timestamp resolves correctly without a unit switch.
Local, UTC and ISO side by side
All three renderings are shown at once, which is what you need when the bug is precisely that two systems disagree about the timezone.
Converts in both directions
The date-and-time picker writes back to the timestamp field and can read the date as local time or as UTC, so a calendar date becomes an epoch value without a timezone slip.
Get the current Unix timestamp in code
| Language | Current epoch seconds | Epoch seconds to date |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(ts * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(ts, tz=timezone.utc) |
| PHP | time() | gmdate('c', $ts) |
| Java | Instant.now().getEpochSecond() | Instant.ofEpochSecond(ts) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(ts) |
| Go | time.Now().Unix() | time.Unix(ts, 0).UTC() |
| Unix shell | date +%s | date -u -d @ts (GNU) / date -u -r ts (BSD, macOS) |
| MySQL | UNIX_TIMESTAMP() | FROM_UNIXTIME(ts) |
| PostgreSQL | EXTRACT(EPOCH FROM now())::bigint | to_timestamp(ts) |
Common use cases
- A log line or a JSON payload contains created_at: 1767225600 and you need to know what moment that actually was in your own timezone before replying to the incident.
- You are writing a database query or a test fixture that needs an exact epoch value for a specific date, and you want the seconds figure without doing the arithmetic.
- Two systems disagree about when an event happened and you suspect one is reporting milliseconds while the other reports seconds, so you convert both and compare.
Frequently asked questions
Can I compare one Unix timestamp in several time zones?
Yes. Enter a timestamp or pick a date, then open Compare time zones. Add or remove zones to see the same instant with milliseconds and each zone's GMT offset on that date. Copy comparison includes the UTC instant and every displayed time.
Link to answerHow do I convert multiple Unix timestamps at once?
Open Convert a list of timestamps and paste one whole timestamp per line, up to 100. The converter can detect seconds, milliseconds, microseconds, or nanoseconds per line, or you can choose one unit for the entire list. It shows UTC dates in ISO 8601 and exports the results as CSV.
Link to answerHow do I convert a Unix timestamp to a date?
Paste it into the Unix timestamp field and the date appears straight away in UTC, your local time and ISO 8601. By hand, divide a seconds value by 86,400 to get days since 1 January 1970 — 1700000000 ÷ 86,400 = 19,675.9 days, which lands on 14 November 2023 at 22:13:20 UTC.
Link to answerHow do I get the current Unix timestamp?
Press Now, or read the live 'Current Unix time' line under the buttons. In code: Math.floor(Date.now() / 1000) in JavaScript, int(time.time()) in Python, time() in PHP, date +%s in a Unix shell, or UNIX_TIMESTAMP() in MySQL — see the table below for more languages.
Link to answerHow do I convert a date to a Unix timestamp in UTC?
Set the toggle above the Date and time picker to UTC, then pick the date and time; the epoch seconds appear in the timestamp field. With Local selected the picker uses your device's time zone instead, which is the usual cause of timestamps that are off by a few hours.
Link to answerWhat is a Unix timestamp?
It is the number of seconds elapsed since 1970-01-01 00:00:00 UTC, known as the Unix epoch, ignoring leap seconds. Because it is a single integer with no timezone attached, it is the standard way systems store and exchange an instant in time.
Link to answerHow do I tell whether a timestamp is in seconds or milliseconds?
Count the digits: current-era values in seconds are 10 digits, and the same instant in milliseconds is 13 (microseconds 16, nanoseconds 19). This converter uses that rule — up to 10 digits is seconds, 11–13 milliseconds, 14–16 microseconds and more nanoseconds. Seconds values have been 10 digits since 1,000,000,000 was reached on 9 September 2001.
Link to answerWhat does the timezone offset in minutes mean?
It is how far your local time sits from UTC, shown so that locations east of UTC are positive — India Standard Time reads +330 minutes, Central European Time +60, US Eastern Standard Time -300. Add it to the UTC time to get the local time shown above it.
Link to answerWhat is the year 2038 problem?
Systems that store Unix time in a signed 32-bit integer overflow at 2,147,483,647 seconds, which is 03:14:07 UTC on 19 January 2038, after which the value wraps to a negative number and reads as 1901. Modern platforms use 64-bit time, and this converter is not limited by the 32-bit range.
Link to answerEmbed this tool on your site
Add the Unix Timestamp Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/unix-timestamp-converter"
title="Unix Timestamp Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/unix-timestamp-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>