Timestamp Converter: Unix Timestamp to Date and Back

Convert Unix timestamps to dates and dates back to timestamps.

Developer Tools Free, no sign-up Runs in your browser

Timestamp Converter tool

Timestamp to date

Seconds and milliseconds are both detected automatically.

Date to timestamp

—
Seconds
—
Milliseconds

About the Timestamp Converter

A Unix timestamp counts the seconds that have passed since the first moment of 1 January 1970 in UTC. Databases, log files and APIs store time this way because a single integer is unambiguous, sorts correctly and carries no timezone confusion. The cost is that a raw timestamp means nothing to a human reading it.

This converter works in both directions. Paste a timestamp to see it as a readable date in your local timezone and in UTC, alongside the ISO 8601 form that most APIs expect. Or pick a date and time to get the matching timestamp in both seconds and milliseconds.

The tool detects automatically whether a pasted number is in seconds or milliseconds, which removes the most common source of error: a value that is a thousand times too large lands in the year 56000 rather than next Tuesday. It also shows how long ago or how far ahead the moment is, which is often the thing you actually wanted to know.

How to use the Timestamp Converter

  1. Paste a timestampEnter a value in seconds or milliseconds. The unit is detected for you.
  2. Read the converted dateLocal time, UTC and ISO 8601 forms are shown together.
  3. Or go the other wayPick a date and time in the second panel to get its timestamp.
  4. Copy what you needEach result has its own copy button.

Features

  • Automatic detection of seconds versus milliseconds
  • Local time, UTC and ISO 8601 output
  • Relative description such as three hours ago
  • Date to timestamp in both seconds and milliseconds
  • Day of the week and day of the year
  • Copy any individual result
  • Uses your device clock and timezone

Who uses this tool

The timestamp converter is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Reading timestamps in server logs and error reports
  • Checking when a token or cache entry expires
  • Converting a date into the format an API expects
  • Debugging timezone differences between systems
  • Working out how old a database record is

Frequently asked questions

How does the tool know if my number is seconds or milliseconds?

By magnitude. A ten-digit value lands in a sensible range when read as seconds, while a thirteen-digit value only makes sense as milliseconds. The detected unit is shown so you can override it if a value is unusual.

Why does the local time differ from the UTC time?

Local time is adjusted by your device's timezone offset, including daylight saving if it applies on that date. Both are shown because logs are usually in UTC while people think in local time.

What is ISO 8601 and why does it matter?

It is the international standard for writing dates and times, such as 2026-10-06T11:30:00Z. Most APIs accept it, it sorts correctly as plain text, and it leaves no ambiguity about day and month order.

Can I convert dates before 1970?

Yes. Timestamps before the epoch are negative numbers, and both directions handle them correctly.

Does this account for leap seconds?

No. Unix time deliberately ignores leap seconds, as do browsers and almost every database. For everyday application work this is the behaviour you want.

Is my data sent to a server?

No. All conversion uses your browser's own date functions, and your device clock provides the current time.

If the timestamp converter is not quite what you need, these other free tools solve closely related problems.

Unix Timestamp Generator

The current epoch time in seconds and milliseconds, updating every second.

Developer Tools Use tool

Age Calculator

Enter a date of birth to get an exact age plus total months, weeks and days.

Calculators Use tool

JSON Formatter

Pretty-print and validate JSON, with the exact line and column of any error.

Developer Tools Use tool

URL Parser

Split a URL into every component, including a table of query parameters.

Developer Tools Use tool

JSON Minifier

Strip whitespace from JSON and compare original and minified sizes.

Developer Tools Use tool