Skip to content
Free tool

Epoch Converter: Convert Unix timestamps to dates and back

Use the Unix Timestamp Converter to turn an epoch timestamp like 1700000000 into a readable date (2023-11-14, 22:13:20 UTC), or convert a date back to seconds or milliseconds. The tool automatically detects seconds, milliseconds, microseconds, and nanoseconds and shows local time, UTC, ISO 8601, RFC 2822, and relative time.

Built by Jakub Martyniak

Free and no sign-up required—the conversion runs entirely in your browser, and nothing is sent to a server.

Building an app or API? Host it on a VPS with full control.

Current Unix timestamp

…

Timestamp → date

Date → timestamp

Example result

What the conversion looks like in the Epoch Converter

You enter a Unix timestamp, and the tool detects the unit and shows the date in several formats. It also converts a date back into seconds and milliseconds. The example below is a fixed sample value in UTC; your output depends on your input.

Example · Timestamp 1700000000, time zone UTC

Input

Unix timestamp
1700000000
10 digits: The tool automatically detects Seconds.

Output

Date and time (UTC)
2023-11-14 22:13:20 UTC
The same point in time; the tool also shows the local time in your time zone.
ISO 8601
2023-11-14T22:13:20.000Z
Standard format for APIs, logs, and databases.
RFC 2822 / HTTP Date
Tue, 14 Nov 2023 22:13:20 GMT
Format used in email headers and HTTP responses.
Converted back to milliseconds
1700000000000
How the tool converts a date back. It automatically recognizes 13 digits as milliseconds when you enter them.

Why this tool

What the Unix Timestamp Converter can do

Both directions, four units, and five output formats in one tool.

Automatic unit detection

The tool detects seconds, milliseconds, microseconds, or nanoseconds from the size of the value (roughly 10, 13, 16, or 19 digits). You can set the unit yourself under “Unit” if needed.

Live ticker

The current Unix timestamp updates every second and can be copied in seconds or milliseconds.

ISO 8601 & RFC 2822

Alongside local time and UTC, you get the result in ISO 8601 and RFC 2822 / HTTP-date formats, each with a copy button.

Relative time

See at a glance how long ago a timestamp was or how far in the future it is.

Before 1970 too

The tool converts negative timestamps (before January 1, 1970) and decimal values just like positive integers.

Runs only in the browser

Conversion uses the JavaScript Date API in your browser; nothing is sent to a server.

How it works

How to convert Unix timestamps

From the current timestamp to conversion into a date, and back from a date to seconds and milliseconds.

Step 1

View current timestamp

At the top, the tool shows the current Unix timestamp in seconds, updating every second. Use “Copy seconds” or “Copy milliseconds” to copy it to your clipboard.

Step 2

Paste timestamp

Paste your value into “Timestamp → Date”, for example 1700000000. Until you enter a value, the current timestamp appears there. “Use now” resets the field to it.

Step 3

Check unit

Under “Unit”, “Auto-detect” shows the detected unit in parentheses. If it’s wrong, select seconds, milliseconds, microseconds, or nanoseconds yourself.

Step 4

View and copy date

The result appears immediately as local time, UTC, ISO 8601, RFC 2822 / HTTP-date, and relative time. Each value has its own copy button.

Step 5

Convert date to timestamp

To convert back, select a date and time under “Date → Timestamp” and set “Input time zone” to local time or UTC. You’ll get the timestamp in seconds and milliseconds, plus ISO 8601 format.

Detecting units

Seconds, milliseconds, microseconds, or nanoseconds?

A Unix timestamp doesn't specify its own unit. The tool detects it from the size of the value: All the examples below represent the same point in time. For negative and decimal values, it uses the absolute value, and you can override detection at any time under “Unit”.

UnitTypical number of digitsDetected from absolute valueExample
Seconds10Under 10¹¹1700000000
Milliseconds1310¹¹ to under 10¹⁴1700000000000
Microseconds1610¹⁴ to under 10¹⁷1700000000000000
Nanoseconds1910¹⁷ or more1700000000000000000

In code and spreadsheets

Convert Unix timestamps without a tool

For scripts and spreadsheets: common commands for getting the current timestamp and converting it to a date. Run them in your own environment. Note that Date.now() in JavaScript returns milliseconds (13 digits), and the Excel formula returns a date in UTC that you need to format as a date.

JavaScript: current timestamp in seconds

Math.floor(Date.now() / 1000)

JavaScript: timestamp to date (ISO 8601)

new Date(1700000000 * 1000).toISOString()

Python: current timestamp in seconds

int(time.time())

PHP: current timestamp in seconds

time()

Linux shell: current timestamp in seconds

date +%s

Linux shell (GNU date): timestamp to date (UTC)

date -u -d @1700000000

Excel / Google Sheets: Timestamp in A1 as a date (UTC)

=A1/86400+25569

Explore more

Related tools for timestamps, time zones, and APIs

FAQ

Frequently asked questions about the Unix Timestamp Converter

Quick answers about Unix timestamps, units, time zones, and this tool.

Yes. The converter is free and requires no sign-up. Conversion runs entirely in your browser using the JavaScript Date API. Your timestamps and dates are neither sent to a server nor stored.

A Unix timestamp is a simple number counting the seconds since January 1, 1970, 00:00:00 UTC (the “Unix epoch”), without a time zone or leap seconds. Many programming languages, databases, and APIs store points in time this way, often in milliseconds.

Paste the value into “Timestamp → Date”. For 1700000000, the tool detects the unit as Seconds and shows the date and time as 2023-11-14 22:13:20 UTC, ISO 8601 as 2023-11-14T22:13:20.000Z, and RFC 2822 as Tue, 14 Nov 2023 22:13:20 GMT, along with the local time in your time zone and the time difference from now. Each value has its own copy button.

Under “Date → Timestamp”, select a date and time down to the second, then set “Input time zone” to local time or UTC. The tool returns the timestamp in seconds and milliseconds, plus ISO 8601 format. For example, 2023-11-14 22:13:20 UTC becomes 1700000000 or 1700000000000, respectively.

By the size of the value: Below 10¹¹, it's treated as seconds; below 10¹⁴ as milliseconds; below 10¹⁷ as microseconds; and above that as nanoseconds. That's roughly 10, 13, 16, or 19 digits. If detection is incorrect, select the unit yourself in the “Unit” field.

The timestamp itself has no time zone. The “Local time” row uses your browser’s time zone—CET (UTC+1) in winter and CEST (UTC+2) in summer in Central Europe. The “UTC” row shows the same moment without an offset. For other time zones, use the time zone converter. Go to time zone converter

Yes. The tool also converts negative timestamps (dates before January 1, 1970) and decimal values such as 1700000000.5. The limit is JavaScript’s date range, roughly 273,000 years before and after 1970. If a value falls outside it, the tool shows a notice instead of a date.

Many older systems store Unix timestamps as signed 32-bit integers. On January 19, 2038, at 03:14:07 UTC, the value overflows and jumps to a date in 1901. 64-bit systems are not affected. This tool uses the JavaScript Date API rather than a 32-bit integer, so it converts dates after 2038 normally.

Any more questions?

Contact Support
Building something of your own?

Your app or API needs a reliable server

A ZAP-Hosting VPS reliably puts your application or project online.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all developer tools