Tools / Calculators

Unix timestamp converter

A unix timestamp converter for seconds and milliseconds. Turn epoch time into a date, or a date into a timestamp.

Report a problem

How to use it

  1. Paste a timestamp or a date.
  2. Read the UTC time, your local time and how long ago it was.
  3. Or pick a date and time to get its timestamp.

About this tool

This timestamp converter turns a unix timestamp into a readable date, and a date back into a timestamp. A unix timestamp counts the seconds since 1 January 1970 UTC. This unix timestamp converter works out whether a number is in seconds, milliseconds, microseconds or nanoseconds from its size, then shows the date in UTC and in your time zone. It also shows how long ago or how far ahead it is. Going the other way, pick a date and time and get the timestamp in seconds and milliseconds. The current time is shown and updates every second.

Seconds or milliseconds

A timestamp with ten digits is almost always seconds, and one with thirteen is milliseconds. JavaScript uses milliseconds, while many databases and APIs use seconds. The tool guesses from the size, tells you which it chose, and shows both values.

Time zones

A unix timestamp is the same everywhere. Only how it is displayed depends on the time zone, so the tool shows UTC and your local time next to each other. That makes it easier to check a log from a server in another country. Use the Now button to fill in the current time, then copy either value to paste into your code or a log search.

Questions

How do I know if my number is in seconds or milliseconds?

Ten digits is usually seconds, and thirteen is usually milliseconds. The tool guesses from the size and tells you what it chose.

Is a unix timestamp in UTC?

Yes. It is the same everywhere. Only the way it is shown depends on the time zone.

Can I paste a date instead?

Yes. Use a format such as 2023-11-14T22:13:20Z.

Last updated: 2026-11-23

Other tools