Unix Timestamp Converter - Epoch to Date and Date to Epoch

Developer Tools Free to use

Convert Unix time without mental maths

Logs, databases and APIs store time as a count of seconds since 1 January 1970 UTC. This unix timestamp converter turns that number into a date you can read, and turns a date back into an epoch value, in seconds and in milliseconds. If you have ever looked at 1700000000 in a log file and wondered when that was, this is the tool for you.

An epoch converter that handles time zones

Choose UTC, your local zone or any other zone to see the same moment in different places, which helps when your server and your team are in different countries. The epoch time converter guesses whether your number is in seconds or milliseconds by its length, so 10 digits are read as seconds and 13 digits as milliseconds.

How to use Unix Timestamp Converter

  1. Choose a mode: timestamp to date, or date to timestamp.
  2. Enter the number or pick the date and time, and choose a time zone.
  3. Solve the security check and press Convert.
  4. Copy a value from the result list, or press Now to start from the current time.

About Unix Timestamp Converter

A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC and ignores leap seconds. Values with 13 digits are read as milliseconds, 16 digits as microseconds and 19 digits as nanoseconds. The date is shown in ISO 8601, in RFC 2822 style and in the chosen time zone, along with a relative description such as "3 hours ago".

Purpose of Unix Timestamp Converter Tool

Use it to read a timestamp in a log line, check when a token or cache entry expires, build a value for an API query, or compare the same moment across several time zones.

Limitations of Unix Timestamp Converter

  • JavaScript dates cover about 271,000 years either side of 1970, and values outside that are refused.
  • Microsecond and nanosecond inputs are cut to milliseconds because the browser date has millisecond precision.
  • Time zone names come from your browser. An older browser may offer a shorter list.
  • Dates before 1970 give negative timestamps, which some systems cannot store.

Privacy and data

Unix Timestamp Converter runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Paste the timestamp into the tool. It detects seconds or milliseconds and shows the date and time in UTC and in the time zone you choose. You can also enter a date to get its epoch seconds and milliseconds.

What is a Unix timestamp?

It is the number of seconds that have passed since 1 January 1970 at 00:00:00 UTC. It is the same everywhere in the world, which makes it handy for storing time.

How can I tell seconds from milliseconds?

A current timestamp in seconds has 10 digits, for example 1700000000. In milliseconds it has 13 digits. The tool detects this from the length.

Why does my local date differ from the UTC date?

The timestamp is one exact moment, but clocks in different zones show different hours for it. Pick UTC or a zone to see the right wall-clock time.

How do I get the current Unix timestamp in code?

In JavaScript, Date.now() returns milliseconds and Math.floor(Date.now() / 1000) returns seconds. In Python, int(time.time()) returns seconds. Paste the number into this tool to read it as a date.

Rate Unix Timestamp Converter

No ratings yet. Be the first to rate this tool.

Your rating

Report a bug or give feedback

Tell us about Unix Timestamp Converter. The subject of your message will name this tool.