Tools / Timestamp Converter

Unix Timestamp Converter

Convert epoch timestamps to human-readable dates and back. Live current time, supports seconds and milliseconds.

Current Unix Timestamp (seconds)
Milliseconds:
UTC: Local:

Epoch → Human Date

Accepts seconds (10 digits) or milliseconds (13 digits)

Human Date → Epoch

Get Current Timestamp — Code Snippets

JavaScript
Math.floor(Date.now() / 1000)
Python
import time; int(time.time())
Go
time.Now().Unix()
PHP
time()
Java
System.currentTimeMillis() / 1000L
Bash
date +%s
PostgreSQL
EXTRACT(EPOCH FROM NOW())::bigint
MySQL
UNIX_TIMESTAMP()

Unix Timestamp — Complete Reference

The Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC. It is the universal standard for time representation in software — used in databases, APIs, log files, JWT tokens, signed URLs, and virtually every backend system. Our converter handles both second-precision (10-digit) and millisecond-precision (13-digit) timestamps automatically.

Common Uses of Unix Timestamps

  • JWT tokens — the exp and iat fields in JWT payloads are Unix timestamps
  • Signed URLs — S3 presigned URLs and CDN signed URLs use epoch expiry
  • Database storage — timestamps stored as integers are timezone-agnostic and sortable
  • Log analysis — nginx, Apache, and syslog events carry epoch timestamps