Unix Timestamp Converter

Enter values to calculate.

Convert Unix timestamps to readable dates and back, with seconds or milliseconds and UTC reference. Free private timestamp converter in your browser.

How to Use

  1. For timestamp to date: paste the number and check Milliseconds if needed.
  2. Click Timestamp -> Date to see local and optional UTC breakdown.
  3. For date to timestamp: set the datetime picker value.
  4. Click Date -> Timestamp to generate seconds or milliseconds.
  5. Use Use current time to snapshot now for log correlation.
  6. Copy results into tickets, queries, or code comments.

Input Field Guide

Unix timestamp
Integer seconds or milliseconds since 1 Jan 1970 UTC. Toggle milliseconds for 13-digit JS values.
Input is milliseconds
Check when the source value has 13 digits typical of JavaScript Date.now().
Human date
Local date-time for reverse conversion to epoch.
Show UTC reference
When checked, displays coordinated universal time alongside local interpretation.

Understanding Your Results

Forward conversion shows local date-time plus UTC when enabled, with seconds and milliseconds echoed for verification. Reverse conversion outputs integer epoch in the selected precision. Detail chips clarify which unit mode was active to prevent order-of-magnitude mistakes.

Features

Formula & Calculation Logic

date = new Date(ms) where ms = seconds*1000 or raw milliseconds; reverse: floor(ms/1000) or ms from UTC instant of local picker interpretation.

Real-World Use Cases

Practical Examples

Seconds

1700000000 with ms off -> 14 Nov 2023 in local time with UTC reference.

Milliseconds

1700000000000 with ms on -> same instant, avoiding 1000* error.

Benefits

Tips & Best Practices

Common Mistakes to Avoid

Frequently Asked Questions

What is a Unix timestamp?

Seconds (or milliseconds) since 1 January 1970 00:00:00 UTC, omitting leap seconds in common software practice.

When should I enable milliseconds?

For 13-digit values from JavaScript, MongoDB BSON dates, or other ms-precision sources.

Does Show UTC change the conversion?

It adds a UTC display line; local interpretation still follows your browser zone.

How is this different from epoch-converter?

Unix timestamp adds millisecond toggle, UTC display, and current-time shortcut; epoch-converter focuses on seconds pairs.

Can I convert negative timestamps?

Yes for pre-1970 instants within JavaScript Date range limits.

What does Use current time do?

Fills fields with now for quick bidirectional reference.

Are leap seconds included?

Standard JS Date uses POSIX-style ignoring leap seconds, matching most logs.

Is my timestamp uploaded?

No. Conversion is entirely local.

Related Date & Time Calculators