Skip to content
Time, Color & Web Runs in your browser — nothing uploadedFree · No signup

Unix Timestamp Converter (Epoch ⇄ Date)

Convert between Unix timestamps and readable dates in UTC, your local time or any timezone. Seconds vs milliseconds are detected automatically, with snippets for Dart, JavaScript and Python.

Current Unix time (seconds)

—

Milliseconds

—

Timestamp → date

Detected: seconds

UTC
Fri, 01 Jan 2027 00:00:00 GMT
UTC
Friday, 1 January 2027 at 00:00:00 UTC
Your local time
Fri Jan 01 2027 00:00:00 GMT+0000 (Coordinated Universal Time)
ISO 8601
2027-01-01T00:00:00.000Z
Relative
in 2 months
Seconds
1798761600
Milliseconds
1798761600000

Date → timestamp

Code snippets

// Dart / Flutter
DateTime.fromMillisecondsSinceEpoch(1798761600 * 1000, isUtc: true);
DateTime.now().millisecondsSinceEpoch ~/ 1000; // now, seconds

// JavaScript
new Date(1798761600 * 1000).toISOString();
Math.floor(Date.now() / 1000); // now, seconds

# Python
from datetime import datetime, timezone
datetime.fromtimestamp(1798761600, tz=timezone.utc)

How to use the Timestamp Converter

  1. Paste a timestamp or pick a date and time.
  2. Choose a timezone.
  3. Copy the format you need.

Features

  • Live current epoch in seconds and milliseconds
  • Auto-detects seconds, milliseconds, microseconds
  • Any IANA timezone, ISO 8601 and RFC 2822 output
  • Relative time (e.g. '3 hours ago')
  • Dart, JavaScript and Python snippets

Frequently asked questions

Is a Unix timestamp in seconds or milliseconds?

Unix time is defined in seconds, but JavaScript and Dart (millisecondsSinceEpoch) commonly use milliseconds. A 13-digit number is almost always milliseconds.

How do I get the current timestamp in Dart?

DateTime.now().millisecondsSinceEpoch for milliseconds, or divide by 1000 (~/ 1000) for seconds.