Tool workspace

Timestamp Converter

Input

Convert Unix timestamps into readable dates, or convert a date and time into a Unix timestamp. This free online Unix Timestamp Converter supports seconds and milliseconds, displays UTC and selected-timezone results, and updates automatically as you change the input.

Input

Output

Loading tool

Loading tool

Developer Tools

Unix Timestamp Converter

Convert Unix timestamps into readable dates, or convert a date and time into a Unix timestamp. This free online Unix Timestamp Converter supports seconds and milliseconds, displays UTC and selected-timezone results, and updates automatically as you change the input.

Quick guide

How to use

You can convert in either direction:

Convert a timestamp: Enter a Unix timestamp and choose seconds, milliseconds, or automatic detection.

Convert a date and time: Enter a local date and time to calculate its Unix timestamp.

Select a timezone: Choose your device timezone or a supported location, such as UTC, Los Angeles, New York, London, Paris, Tehran, Dubai, or Tokyo.

Read the results: View the timestamp in seconds and milliseconds, the ISO 8601 date in UTC, the readable date in your selected timezone, and the relative time.

Copy a result: Use the individual copy button beside any value you need.

The converter updates as you change either input. You can also use the live Unix clock or select the button to use the current time.

Details

About this tool

Convert Unix timestamps into readable dates, or convert a date and time into a Unix timestamp. This free online Unix Timestamp Converter supports seconds and milliseconds, displays UTC and selected-timezone results, and updates automatically as you change the input.

What Is a Unix Timestamp?

A Unix timestamp is a number representing the time elapsed since January 1, 1970 at 00:00:00 UTC. This moment is known as the Unix epoch.

Unix timestamps usually appear in one of two formats:

Seconds: The number of seconds since the Unix epoch.

Milliseconds: The number of milliseconds since the Unix epoch.

For example, 1700000000 is a timestamp in seconds, while 1700000000000 represents the same moment in milliseconds.

Unlike a formatted date, a Unix timestamp does not contain a timezone. It represents one specific moment in time, regardless of where it is viewed.

Seconds vs. Milliseconds

The two timestamp formats represent the same kind of information but use different units.

Automatic detection uses the number's magnitude to estimate whether the input is in seconds or milliseconds. This is convenient for common timestamp values, but it is a heuristic rather than a guarantee. If you know the format, select seconds or milliseconds manually.

Understanding the Timezone Results

The converter displays the same moment in different formats:

Unix timestamp: A numeric representation of the moment.

ISO 8601 UTC: A standardized date and time in Coordinated Universal Time, usually ending in Z.

Selected timezone: A readable date and time adjusted for the timezone you choose.

Relative time: An approximate description such as “in 2 hours” or “3 days ago.”

Changing the timezone changes the displayed clock time, not the underlying moment or Unix timestamp. For example, the same timestamp can display as a morning time in London and an afternoon time in Tokyo.

Verified Timestamp Examples

These examples use UTC so the date and time can be compared consistently.

The last two examples represent exactly the same moment. The millisecond value is the seconds value multiplied by 1,000.

Where Are Unix Timestamps Used?

Unix timestamps are common in software and data systems because they provide a consistent way to represent moments in time.

Programming: Store, compare, and calculate dates in applications.

APIs: Exchange date and time values between services.

Databases: Record when a row was created, updated, or processed.

Log files: Identify when an event or error occurred.

Debugging: Compare event times and investigate timing-related issues.

Timezone comparisons: Display one moment in different locations without changing the underlying timestamp.

Practical inputs

Examples JSON

Verified Timestamp Examples

These examples use UTC so the date and time can be compared consistently. The last two examples represent exactly the same moment. The millisecond value is the seconds value multiplied by 1,000.

Help

Frequently asked questions

Does a Unix timestamp use UTC?

Yes. Unix timestamps measure time from the Unix epoch, which is defined as January 1, 1970 at 00:00:00 UTC. The timestamp itself does not store a timezone.

What is the difference between a timestamp in seconds and milliseconds?

A timestamp in seconds counts elapsed seconds since the Unix epoch. A timestamp in milliseconds counts elapsed milliseconds. For the same moment, the millisecond value is 1,000 times the seconds value.

Why does the same timestamp show different local times?

The timestamp represents one moment worldwide. Each timezone displays that moment using its own local clock time and applicable daylight saving rules.

How does automatic timestamp detection work?

The converter examines the magnitude of the number to estimate whether it represents seconds or milliseconds. If the result looks incorrect, choose the unit manually.

What does the ISO 8601 result mean?

It is a standardized date-and-time representation. The UTC result commonly ends in Z, indicating Coordinated Universal Time.

What does relative time mean?

Relative time describes how far a date is from the present, for example, “in 2 hours” or “3 days ago.” It changes as time passes.

Can I convert a date into a Unix timestamp?

Yes. Enter a local date and time, select the appropriate timezone, and the converter calculates the corresponding Unix timestamp in seconds and milliseconds.

Does changing the timezone change the Unix timestamp?

No. Changing the selected timezone only changes the readable date and time display. The Unix timestamp continues to represent the same moment.