Unix Time to Date Converter — Instant Free Tool

Unix time is everywhere — APIs, databases, server logs, file systems. This tool converts any Unix time value to a human-readable date instantly, client-side, with no data sent to a server.

Current Unix Timestamp

1776195270

Free — No Limits, No Signup

Convert

or

Results

UTC Time
Local Time
ISO 8601
Relative Time
Unix (seconds)
Unix (milliseconds)
Day of Week
Day of Year
Week Number
Is DST

Where You Encounter Unix Time

API Responses

Twitter/X, Stripe, and GitHub all return Unix timestamps in JSON payloads. For example, a Stripe charge object includes created as a Unix timestamp, and GitHub events expose created_at in epoch seconds.

Database Columns

MySQL stores and retrieves Unix time with UNIX_TIMESTAMP() and FROM_UNIXTIME(). PostgreSQL uses EXTRACT(EPOCH FROM ...) and TO_TIMESTAMP().

Server Logs

Nginx access logs, Apache logs, and syslog entries often include Unix timestamps. Tools like awk and date -d @ are commonly used to parse and convert these values in shell scripts.

File Systems

While ls -l displays human-readable dates, the OS internally stores mtime, atime, and ctime as Unix timestamps inside each inode. The stat command reveals the raw values.

JWT Tokens

JSON Web Tokens use Unix timestamps for the exp (expiration) and iat (issued at) claims. Paste a JWT into jwt.io and you will see these decoded as epoch seconds.

Cron Jobs and Task Schedulers

Unix cron itself does not use timestamps, but task schedulers like Celery, Sidekiq, and AWS EventBridge record scheduled execution times as Unix timestamps to avoid timezone ambiguity.

Unix Time to Date — Quick Reference

TimestampUTC DateNotes
1735689600Jan 1, 2025 00:00:00 UTCStart of 2025
1751587200Jul 4, 2025 00:00:00 UTCUS Independence Day 2025
1767225600Jan 1, 2026 00:00:00 UTCStart of 2026
1798761600Dec 31, 2026 00:00:00 UTCEnd of 2026
1893456000Jan 1, 2030 00:00:00 UTCStart of 2030

Convert Unix Time in Your Stack

Frontend

JavaScript

new Date(unixTime * 1000).toLocaleString()

Backend

Node.js

new Date(unixTime * 1000).toISOString()

Python

from datetime import datetime
datetime.utcfromtimestamp(unix_time)

PHP

date('Y-m-d H:i:s', $unix_time)

Java

Instant.ofEpochSecond(unixTime)

Go

time.Unix(unixTime, 0).UTC()

Database

MySQL

FROM_UNIXTIME(unix_time)

PostgreSQL

TO_TIMESTAMP(unix_time)

SQLite

datetime(unix_time, 'unixepoch')

Command Line

Linux

date -d @unix_time

macOS

date -r unix_time

Windows PowerShell

[DateTimeOffset]::FromUnixTimeSeconds(unix_time)

Seconds vs Milliseconds: How to Tell

Unix time is traditionally measured in seconds — these are 10-digit numbers (e.g. 1700000000). JavaScript's Date.now()and Java's System.currentTimeMillis() return milliseconds — 13-digit numbers (e.g. 1700000000000).

Quick rule: if the number is greater than 10000000000 (10 billion), it is almost certainly milliseconds. Count the digits: 10 digits = seconds, 13 digits = milliseconds.

// Auto-detect seconds vs milliseconds
function toDate(value: number): Date {
  // 13-digit numbers are milliseconds (> year 2001 in seconds)
  const isMilliseconds = value > 9_999_999_999;
  return new Date(isMilliseconds ? value : value * 1000);
}

// Examples
toDate(1700000000);     // seconds  → 2023-11-14
toDate(1700000000000);  // ms       → 2023-11-14

Frequently Asked Questions

What is Unix time?
Unix time (also called Unix timestamp or POSIX time) counts seconds elapsed since January 1, 1970 00:00:00 UTC. It is the standard time representation used by Linux, macOS, and most programming languages.
How do I convert Unix time to a date?
Enter the Unix time value in the converter above. The tool automatically shows UTC date, your local time, ISO 8601, and relative time. For programmatic conversion: JavaScript: new Date(unixTime * 1000), Python: datetime.utcfromtimestamp(unixTime).
Is Unix time in seconds or milliseconds?
Unix time is traditionally in seconds (10-digit number). JavaScript's Date.now() returns milliseconds (13-digit). Count the digits to determine the unit, or use the tool's auto-detection.
What timezone is Unix time in?
Unix time has no timezone — it is an absolute offset from the UTC origin. When displaying, you convert to any timezone, but the stored integer is always UTC-relative.
How do I get the current Unix time in JavaScript?
Use Date.now() for milliseconds (divide by 1000 for seconds), or Math.floor(Date.now() / 1000) for integer seconds.
How do I convert Unix time in Python?
Use datetime.utcfromtimestamp(ts) for UTC, or datetime.fromtimestamp(ts) for local time. Both are in the standard datetime module.
What is the current Unix time?
The current Unix time is shown live in the converter above. It increments by 1 every second.

Related Tools