Epoch & Unix Timestamp Converter - Convert Dates Online
Read a timestamp or make one
Paste a number from a log line, an API response or a JWT exp claim and the converter shows it in UTC, in your
local time zone, as ISO 8601 and as relative time ("in 3 hours", "2 days ago"). It works out the unit from the number of
digits. Going the other way, type a date such as 2026-01-15T09:30:00Z into the same box to get the timestamp in
seconds and milliseconds. Now fills in the current moment, and the live current timestamp is shown at the top.
Example
Input: 1708012800
UTC: Thu, 15 Feb 2024 16:00:00 GMT
ISO: 2024-02-15T16:00:00.000Z
Paste 1708012800000 and you get the same moment, because 13 digits are read as milliseconds.
Getting the current timestamp in code
- JavaScript:
Math.floor(Date.now() / 1000)(Date.now() alone is milliseconds) - Python:
int(time.time()) - PHP:
time() - Shell:
date +%s - PostgreSQL:
extract(epoch from now())
To convert a wall-clock time between places rather than to a number, use the time zone converter.
Related Tools
Regex Tester
Test regular expressions against text with match highlighting.
UUID Generator
Generate random v4 UUIDs for use in databases and APIs.
Colour Converter
Convert colours between HEX, RGB, and HSL formats.
Timezone Converter
Convert times between timezones with UTC offset display and common presets.