Free Developer Tool

Unix Timestamp Converter

Convert Unix timestamps to date and time, and date/time values to Unix timestamp format.

All conversions are performed directly in your browser. Your data is not sent to the server.

Timestamp conversion tool

Supports Unix timestamps in seconds and milliseconds.

Now: calculating

Unix Timestamp → Date

Enter a 10-digit seconds or 13-digit milliseconds timestamp value.

Date → Unix Timestamp

Create a timestamp value by selecting a local date and time.

Conversion result

UTC, local time, ISO 8601 and RFC 2822 equivalents.

Unix Timestamp

—

Milliseconds

—

Detected Unit

—

UTC

—

Local Time

—

ISO 8601

—

RFC 2822

—

Day of the Week

—

Time Zone

—

Unix Timestamp Converter features

Convert Unix time values into different date and time formats quickly, securely and for free.

10

Seconds support

Automatically detects 10-digit Unix timestamps.

13

Milliseconds support

Converts 13-digit JavaScript timestamps.

UTC

UTC conversion

Shows the UTC equivalent of date and time values.

TZ

Local time

Produces the local result according to your browser's time zone.

ISO

ISO 8601 output

Provides the standard date output used in APIs and integrations.

⧉

Copy and download

Copy the results to the clipboard or download them as a TXT file.

What is a Unix Timestamp?

A Unix timestamp is a time representation that expresses a specific date and time as a single numeric value. The calculation is based on the number of seconds elapsed since 00:00:00 UTC on 1 January 1970. This starting point is called the “Unix Epoch”, or simply “Epoch”.

Because Unix timestamps provide a time-zone-independent reference, they are widely used in server applications, API services, databases, log records, authentication systems and distributed software architectures.

The same Unix timestamp can be displayed with different local time equivalents in Istanbul, London or New York. Nevertheless, the actual moment in time it expresses does not change. The time zone only affects how the value is shown to the user.

What is Epoch Time?

Epoch Time refers to the same basic concept as a Unix timestamp. It shows the time elapsed since the start of 1 January 1970 UTC in seconds or milliseconds.

Why are Unix timestamps used?

Numeric timestamp values are practical for comparison, sorting, storage and data exchange between systems. They reduce the language, region and format differences that can occur with textual date formats.

How to use the Unix Timestamp Converter?

1

Enter the value

Type the timestamp or date/time value into the relevant field.

2

Select the unit

Use the seconds, milliseconds or auto-detect option.

3

Convert

Generate the UTC and local results with the convert button.

4

Use the result

Copy the results or download them as a file.

Comparison

Difference between Seconds and Milliseconds timestamps

Feature Seconds Timestamp Milliseconds Timestamp
Typical length 10 digits 13 digits
Base unit Seconds Milliseconds
Common use Linux, backend, JWT, API JavaScript, browser applications
Example 1718531400 1718531400000
Conversion Multiply by 1000 to convert to milliseconds Divide by 1000 to convert to seconds

Where are Unix timestamps used?

01

REST API

Enables date and duration information to be exchanged between systems in a standard format.

02

JWT and OAuth

Used for token start, expiry and validity times.

03

Linux Systems

Represents the time information of files, processes and system events.

04

Logging Systems

Makes it easier to order and compare application events.

05

Databases

Can be used to store or process date fields numerically.

06

Docker and Microservices

Provides a shared time reference between distributed services.

Unix Timestamp code examples

JavaScript

// Milisaniye
const milliseconds = Date.now();

// Saniye
const seconds = Math.floor(Date.now() / 1000);

Python

import time
from datetime import datetime, timezone

seconds = int(time.time())
current_utc = datetime.now(timezone.utc)

C#

long seconds = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
long milliseconds = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();

Java

long seconds = Instant.now().getEpochSecond();
long milliseconds = Instant.now().toEpochMilli();

SQL Server

SELECT DATEDIFF_BIG(
    SECOND,
    '1970-01-01T00:00:00',
    SYSUTCDATETIME()
);

PostgreSQL

SELECT EXTRACT(EPOCH FROM NOW())::bigint;

Frequently Asked Questions About the Unix Timestamp Converter

What is a Unix Timestamp?
A Unix timestamp expresses the number of seconds or milliseconds elapsed since 00:00:00 UTC on 1 January 1970.
What is Epoch Time?
Epoch Time is a time format that numerically shows the time elapsed since the Unix start time.
What is UTC?
UTC is the Coordinated Universal Time standard that clocks around the world use as a reference.
What is Local Time?
Local Time is the equivalent of the timestamp value shown according to the user's device or browser time zone.
What is the difference between seconds and milliseconds?
A seconds timestamp is in seconds, while a milliseconds timestamp is in milliseconds. The millisecond value is roughly 1000 times the seconds value.
Why does a timestamp have 10 digits?
Today, Unix timestamps in seconds mostly have 10 digits. The value grows as time passes.
What is a 13-digit timestamp?
A 13-digit timestamp usually expresses the number of milliseconds elapsed since 1 January 1970.
How is a Unix timestamp created?
Fill in the date and time fields and click the Generate Timestamp button to create the seconds and milliseconds values.
How do you get a JavaScript timestamp?
You can use Date.now() for milliseconds and Math.floor(Date.now() / 1000) for seconds.
Is a Unix timestamp affected by the time zone?
A timestamp represents a single moment in time and is independent of the time zone. Only the displayed date/time equivalent changes depending on the time zone.
Are timestamp values sent to the server?
No. Conversions are performed directly in your browser.
Is the Unix Timestamp Converter free?
Yes. The tool is free and does not require registration.

Free Developer Tools