Epoch Converter

Convert Unix timestamps to dates and dates to Unix time, in seconds or milliseconds.

Runs in your browser. Your text and files never leave your device.

Current Unix time: …

Timestamp to date

Date to timestamp

How to convert a timestamp

In code

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). SQL (PostgreSQL): extract(epoch from now()).

Frequently Asked Questions

What is Unix epoch time?

Unix time counts the seconds since 1 January 1970, 00:00:00 UTC (the "epoch"), ignoring leap seconds. Computers use it because it is one simple number that means the same moment everywhere.

Seconds or milliseconds?

Unix time is in seconds (10 digits today). JavaScript and Java use milliseconds (13 digits). The converter detects which one you pasted from its length.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit number overflow on 19 January 2038 at 03:14:07 UTC. Modern systems use 64-bit numbers and are not affected.

Which time zone are the results in?

Both: the date is shown in UTC and in your device's own time zone, with its name.

Free tool: JSON FormatterFormat, validate and minify JSON. Errors show the exact line and column.Free tool: Base64 Encode and DecodeEncode text or files to Base64 and decode Base64 back, with full UTF-8 support.Free tool: URL Encode and DecodePercent-encode text for URLs and decode encoded URLs back to readable text.Free tool: UUID GeneratorGenerate random UUID v4 (GUID) values, one or a thousand at a time.