Blog News Contact Get a proposal

Unix Timestamp Converter: Epoch to Date and Back

Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds and get the date in UTC, your time zone and any other. Works offline, nothing leaves your device.

Runs in your browser: your data never leaves your deviceFreeNo signup

Current Unix time

Seconds—
Milliseconds—
UTC—
Your time—

Timestamp to date

Date to timestamp

Batch conversion

One timestamp or date per line, up to 10,000. The unit is detected for each line.

Code snippets

How to get the current timestamp and turn it into a date. Examples use the timestamp from the converter.

Building an API or a data pipeline?

We design and build APIs, backends and integrations where dates, time zones and logs are handled correctly from day one. Tell us about the project and get an estimate.

TL;DR: paste a Unix timestamp into this epoch converter and get the date in UTC, your local time and any IANA time zone. The converter detects seconds, milliseconds, microseconds and nanoseconds by length, works the other way round (date to timestamp), converts up to 10,000 values at once and gives ready code for nine languages. Everything runs in your browser.

We use this tool ourselves when we debug APIs, logs and database records at YuSMP Group. If you need a team for the system behind those timestamps, see our API development services and web development.

What is a Unix timestamp?

A Unix timestamp (epoch time, POSIX time) is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is the same number everywhere in the world, so servers, databases and APIs use it to store a moment in time without time zone confusion. For example, 1731100000 is 8 November 2024, 21:06:40 UTC.

How do I convert a timestamp to a date?

  1. Paste the value into the “Timestamp to date” field. The current time is already there as an example.
  2. Check the unit. 10 digits are seconds, 13 are milliseconds, 16 are microseconds, 19 are nanoseconds. If the guess is wrong, switch the unit manually.
  3. Pick a time zone for the extra row. The result shows UTC, your browser time zone, ISO 8601, RFC 2822, relative time, weekday and ISO week number.
  4. Copy any value with the button next to it, or copy a link to the result for a colleague. The value goes into the part of the link after #, which browsers do not send to servers.

To go the other way, set a date, a time and a time zone in “Date to timestamp”. The tool accounts for daylight saving time and warns you when a local time does not exist or happens twice.

Seconds, milliseconds, microseconds or nanoseconds?

  • 10 digits — seconds: Unix date +%s, PHP time(), MySQL UNIX_TIMESTAMP(), JWT exp.
  • 13 digits — milliseconds: JavaScript Date.now(), Java System.currentTimeMillis().
  • 16 digits — microseconds: Python time.time_ns() // 1000, PostgreSQL internals.
  • 19 digits — nanoseconds: Go time.Now().UnixNano(), InfluxDB, OpenTelemetry.

How do I convert many timestamps at once?

Paste a column from a log or a spreadsheet into “Batch conversion”, one value per line. Each line is detected separately, so seconds and milliseconds can be mixed, and date strings work too. Download the result as CSV for Excel or Google Sheets.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer run out of room at 2147483647, which is 19 January 2038, 03:14:07 UTC. One second later the value wraps to a negative number and the date jumps back to 1901. Modern 64-bit systems are safe, but old embedded devices, file formats and database columns of type INT still need checking. Paste 2147483647 above to see the exact moment.

Negative timestamps and leap seconds

Dates before 1970 have negative timestamps: -86400 is 31 December 1969. The converter supports them, as does any 64-bit system. Unix time ignores leap seconds: every day is exactly 86,400 seconds, so a leap second repeats the previous second. That is why Unix time and UTC can differ by a second at the moment of the leap, and why you should never use timestamps for precise physical intervals.

FAQ

What is the current Unix timestamp?

It is shown at the top of the page in seconds and milliseconds and updates every second. Press Pause to freeze it and copy the exact value.

Is a Unix timestamp in UTC or in local time?

It does not depend on a time zone: it is a count of seconds since 1 January 1970 UTC, the same everywhere. A time zone only matters when you turn it into a readable date, which is why the converter shows UTC, your local time and any zone you choose.

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. Today a timestamp in seconds has 10 digits and in milliseconds 13. The converter detects this automatically and lets you set the unit manually.

Can I convert a date to a Unix timestamp?

Yes. Use “Date to timestamp”: enter a date, a time and a time zone to get the value in seconds and milliseconds. You can also paste an ISO 8601 date such as 2024-11-08T21:06:40Z into the main field.

Does the converter handle daylight saving time?

Yes. Time zones come from the IANA database built into your browser, so DST rules and historical changes are applied. If a local time is skipped or repeated because of a clock change, the tool warns you.

Is my data sent anywhere?

No. All conversions run in your browser with JavaScript Date and Intl. After the page loads you can disconnect from the internet and the tool keeps working.

Related tools