Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates. Live current timestamp included.

Current Unix Timestamp
--
Local Date--
UTC Date--
ISO 8601--
Milliseconds--
Day of Week--

How to Use the Unix Timestamp Converter

  1. Timestamp to Date: Paste a Unix timestamp (e.g. 1704067200) and click Convert. You get the local date, UTC date, ISO 8601 string, and the day of the week.
  2. Date to Timestamp: Switch modes, pick a date and time, and click Convert. The tool returns both seconds and milliseconds values.
  3. Current Timestamp: The live box at the top shows the current Unix timestamp, updating every second.

What Is a Unix Timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC, known as the Unix epoch. It is the standard way computers store and compare dates because it is a single integer with no timezone ambiguity.

Unix timestamps are used in APIs, databases, log files, file systems, and programming languages worldwide. JavaScript's Date.now() returns milliseconds since the epoch, while most server-side systems use seconds.

What is a Unix Timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC — known as the Unix epoch. It's a universal standard used in programming, databases, and APIs to represent time as a single number.

For example, the timestamp 1700000000 represents November 14, 2023 at 22:13:20 UTC. JavaScript uses milliseconds (13 digits), while most other systems use seconds (10 digits).

Common Unix Timestamps

Timestamp (seconds) Date & Time (UTC) Significance
0Jan 1, 1970 00:00:00Unix Epoch (start)
1000000000Sep 9, 2001 01:46:401 billion seconds
1500000000Jul 14, 2017 02:40:001.5 billion seconds
2000000000May 18, 2033 03:33:202 billion seconds (future)

Get Unix Timestamp in Code

JavaScript

Math.floor(Date.now() / 1000)

Python

import time; int(time.time())

PHP

time()

Bash / Linux

date +%s

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds since January 1, 1970 00:00:00 UTC (the Unix epoch). It is used universally in computing to represent points in time as a single number.

What is the current Unix timestamp?

The current Unix timestamp updates in real time on this page. It represents the total seconds elapsed since the Unix epoch (January 1, 1970).

What is the difference between seconds and milliseconds?

Unix timestamps in seconds are 10 digits long. In milliseconds (used by JavaScript Date), they are 13 digits. Divide milliseconds by 1000 to get seconds.

What is ISO 8601?

ISO 8601 is an international standard for date/time format: YYYY-MM-DDTHH:mm:ssZ. It is unambiguous and timezone-aware, making it ideal for APIs and data exchange.

Can I convert a date to a Unix timestamp?

Yes. Switch to 'Date to Timestamp' mode, enter a date and time, and the tool will return both the seconds and milliseconds Unix timestamp values.

What is the current Unix timestamp?

The current Unix timestamp changes every second. Use this page to see the live timestamp. Unix time counts the total seconds elapsed since January 1, 1970 00:00:00 UTC (the Unix epoch).

How to get Unix timestamp in JavaScript?

Use Math.floor(Date.now() / 1000) to get the current timestamp in seconds. JavaScript's Date.now() returns milliseconds, so divide by 1000. For milliseconds, just use Date.now().

What is epoch time?

Epoch time is another name for Unix timestamp — the number of seconds since January 1, 1970 00:00:00 UTC. It's used universally in computing because it's timezone-independent and easy to store as a single integer.

More Free Tools

Explore our collection of free online tools