Skip to converter
Unix Timestamp Converter

Free Online Unix Timestamp Converter

Unix Timestamp Converter

Last updated:

100% Free, Instant & Browser-Based Unix Epoch Timestamp Converter.

Current Unix Epoch Time

0000000000 seconds
0000000000000 milliseconds

Display Timezone

01 Timestamp → Date

waiting…

Paste a Unix timestamp — seconds (10 digits) or milliseconds (13 digits) are auto-detected.

Human-readable date

—

—

02 Date → Timestamp

Pick a year, month, day, time and timezone to get the Unix epoch time.

Unix timestamp (seconds)

—

—

03 Batch Timestamp Conversion

Paste multiple timestamps — one per line, or separated by commas or spaces. Mixed seconds and milliseconds are fine.

Advertisement

Epoch Time Quick Reference

1 minute60 seconds
1 hour3,600 seconds
1 day86,400 seconds
1 week604,800 seconds
1 month (30.44 days)2,629,743 seconds
1 year (365.24 days)31,556,926 seconds
Unix epoch start0 = 1970-01-01 00:00:00 UTC
32-bit limit (Y2038)2147483647

How to Use This Unix Timestamp Converter

  1. Convert a timestamp to a date: paste any epoch value into Timestamp → Date. The tool auto-detects seconds, milliseconds, microseconds or nanoseconds and shows the date, ISO 8601, RFC 2822, UTC string and relative time instantly.
  2. Convert a date to a timestamp: choose year, month, day, time and timezone in Date → Timestamp to get Unix time in seconds and milliseconds.
  3. Switch timezones: tap UTC, Local, EST, PST, GMT, CET, JST or IST — or pick any IANA timezone from the list. Daylight saving time is applied automatically.
  4. Convert in bulk: paste a list of timestamps into Batch Conversion and export the results table as CSV.

What Is a Unix Timestamp (Epoch Time)?

A Unix timestamp — also called epoch time, POSIX time or Unix time — is the number of seconds that have passed since the Unix epoch: 00:00:00 UTC on 1 January 1970, ignoring leap seconds. Because it is one plain number with no timezone attached, it is the standard way to store, sort and compare moments in time across databases, REST APIs, JWT tokens, log files and file systems.

For example, the timestamp 1792224000 represents 2026-10-17T08:00:00Z. The same number refers to the same instant everywhere on Earth — only its local display (e.g. 11:00 in Sofia or 04:00 in New York) changes.

How do I convert a Unix timestamp to a human-readable date?

Paste it into the converter above and read the result. Programmatically, a timestamp in seconds must be multiplied by 1000 before passing it to JavaScript’s new Date(), because JavaScript works in milliseconds. In Python use datetime.fromtimestamp(ts, tz=timezone.utc); in PHP use date('c', $ts).

Seconds vs. milliseconds: what’s the difference?

Today, a seconds timestamp has 10 digits (e.g. 1792224000) and a milliseconds timestamp has 13 digits (e.g. 1792224000000). Unix/Linux, PHP, MySQL and most backends use seconds; JavaScript Date.now(), Java System.currentTimeMillis() and many analytics tools use milliseconds. Microseconds (16 digits) and nanoseconds (19 digits) appear in Go, PostgreSQL and high-precision logs. This tool detects all four by magnitude.

What is the Year 2038 problem?

Software that stores Unix time in a signed 32-bit integer can only count to 2147483647 — 2038-01-19 03:14:07 UTC. One second later the counter overflows to a negative number and wraps back to 1901. Modern 64-bit systems are not affected for roughly 292 billion years.

Common date formats explained

Get the Current Epoch Time in Code

LanguageCurrent timestampTimestamp → date
JavaScriptMath.floor(Date.now() / 1000)new Date(ts * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(ts, timezone.utc)
PHPtime()date('c', $ts)
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(ts)
Gotime.Now().Unix()time.Unix(ts, 0).UTC()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(ts)
MySQLSELECT UNIX_TIMESTAMP();SELECT FROM_UNIXTIME(ts);
PostgreSQLSELECT extract(epoch FROM now());SELECT to_timestamp(ts);
Bashdate +%sdate -u -d @ts

Frequently Asked Questions

What is Unix Timestamp / Epoch Time?

▾

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since the Unix epoch: 00:00:00 UTC on Thursday, 1 January 1970, not counting leap seconds. It is a single timezone-independent number, which makes it ideal for storing and comparing moments in time in databases, APIs and log files.

How do I convert Unix timestamp to human-readable date?

▾

Paste the timestamp into the Timestamp to Date field of Unix Timestamp Converter. The tool auto-detects whether it is in seconds, milliseconds, microseconds or nanoseconds and instantly shows the date in your chosen timezone plus ISO 8601, RFC 2822, UTC string and relative time. In code, multiply seconds by 1000 and pass it to new Date() in JavaScript, or use datetime.fromtimestamp() in Python.

What is the difference between seconds and milliseconds in Epoch timestamps?

▾

A seconds-based Unix timestamp currently has 10 digits (for example 1792224000), while a milliseconds-based timestamp has 13 digits (for example 1792224000000) and is 1000 times larger. Unix systems, PHP and most databases use seconds; JavaScript Date.now() and Java System.currentTimeMillis() use milliseconds. Divide milliseconds by 1000 to get seconds.

How do I convert a date to a Unix timestamp?

▾

Use the Date to Timestamp panel: choose the year, month, day, time and timezone, and the tool returns the Unix timestamp in seconds and milliseconds. In JavaScript you can use Math.floor(new Date('2026-10-17T00:00:00Z').getTime() / 1000).

Does a Unix timestamp depend on the timezone?

▾

No. A Unix timestamp always counts seconds from 1 January 1970 UTC, so the same moment has the same timestamp everywhere in the world. The timezone only affects how that moment is displayed as a human-readable local date and time.

What is the Year 2038 problem?

▾

Systems that store Unix time as a signed 32-bit integer can only count up to 2147483647, which is 03:14:07 UTC on 19 January 2038. After that the value overflows. Modern systems use 64-bit integers, which push the limit billions of years into the future.

Is this Unix timestamp converter private and free?

▾

Yes. Unix Timestamp Converter is 100% free and runs entirely in your browser using native JavaScript Date and Intl APIs. Nothing you type is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?▾

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Milestone timestamps worth knowing

A few round numbers make it easier to sanity-check a value at a glance:

Timestamp (seconds)Date and time (UTC)
01970-01-01 00:00:00
10000000002001-09-09 01:46:40
12345678902009-02-13 23:31:30
15000000002017-07-14 02:40:00
17000000002023-11-14 22:13:20
20000000002033-05-18 03:33:20

If a value from your logs starts with 17 and has 10 digits, it falls between late 2023 and 2027. A 13-digit value starting with 17 is the same range in milliseconds.

Dates before 1970

Unix time can be negative. Each second before the epoch counts down from zero, so −86400 is 1969-12-31 00:00:00 UTC and −2208988800 is 1900-01-01 00:00:00 UTC. Birth dates and historical records stored as timestamps often need negative values. Some older systems and spreadsheet functions reject them, so test with a pre-1970 date if your data includes one.

Bugs that show up with epoch time

To add or subtract days from a date rather than seconds from a timestamp, the Date Calculator handles calendar math directly.

More questions about Unix Timestamp Converter

Why does my converted date show January 1970?

Your value is probably in seconds but is being read as milliseconds, or it is empty or zero. Multiply a 10-digit seconds value by 1000 before passing it to JavaScript's Date.

Can a Unix timestamp be negative?

Yes. Negative values count backward from 1 January 1970 UTC, so −86400 is 31 December 1969 at midnight UTC.

What happens to timestamps when clocks change for daylight saving time?

Nothing. Unix time keeps counting steadily in UTC. Only the local display jumps forward or back by an hour.

How do I get the timestamp for midnight in a specific city?

Set the date and 00:00:00 in Date to Timestamp and choose that city's timezone. Midnight in New York and midnight in UTC are different moments with different timestamps.

Copied!