Convert between Unix epoch timestamps and human-readable dates instantly. Free, private, runs entirely in your browser.
TextForge API provides timestamp conversion, text manipulation, hashing, encoding, and more through a simple REST API. Free tier available.
GET /api/timestamp?ts=1703318400&format=iso
A Unix timestamp (also called Epoch time, POSIX time, or Unix Epoch) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC, not counting leap seconds. It is widely used in programming, databases, APIs, and system logs as a simple, timezone-independent way to represent a point in time.
Unix timestamps in seconds are 10 digits (until November 2286). JavaScript, Java, and many modern APIs use millisecond precision, which adds three extra digits (13 digits total). This converter automatically detects whether your input is in seconds or milliseconds based on its length.
Math.floor(Date.now() / 1000)import time; int(time.time())time()date +%sTime.now.to_itime.Now().Unix()