Unix Timestamp Converter
About this tool
About Unix Timestamp Converter
Unix time counts the seconds since midnight UTC on 1 January 1970, and it is everywhere: database columns, log files, cookies, JWT exp claims and API payloads. This converter turns those numbers into dates you can read and back again. Paste a value and it decides from the number of digits whether it is seconds (10 digits today), milliseconds (13), microseconds (16) or nanoseconds (19); you can also set the unit yourself when a value is ambiguous. You get the moment in UTC and in any time zone you pick, as ISO 8601, RFC 2822 and a full written date, plus how long ago it was. Negative values before 1970 work, and so do dates far beyond the 2038 limit of 32-bit systems. To go the other way, pick a date, time and zone in Date to timestamp. The current Unix time ticks at the top, ready to copy.
Built and maintained by Abhi JainUpdated
How to Convert Unix Time to a Date
- 1
Paste the number
Enter the Unix timestamp. Unit on Auto detects seconds, milliseconds, microseconds or nanoseconds.
- 2
Choose a zone
Pick the Time zone you want the local date in. UTC is always shown too.
- 3
Go the other way
Use Date to timestamp to turn a Date, Time and zone into Unix seconds and milliseconds.
Unix Timestamp Converter: questions and answers
How do I convert a Unix timestamp to a date by hand?
Divide by 86,400 to get days since 1 January 1970 and keep the remainder as seconds into that day. Most languages do it for you: new Date(ts * 1000) in JavaScript, datetime.fromtimestamp(ts, timezone.utc) in Python, date -d @ts on Linux.
Is Unix time the same in every time zone?
Yes. A Unix timestamp is an absolute instant counted in UTC, so the same number means the same moment everywhere. Only the displayed local time changes with the zone.
Does Unix time count leap seconds?
No. Every Unix day is exactly 86,400 seconds. When a leap second happens, Unix time repeats or smears a second, so it is not a precise count of elapsed SI seconds.
How do I get the current Unix time in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Bash: date +%s. SQL (PostgreSQL): extract(epoch from now()). Or copy it from the live clock on this page.
More Timestamp Converter presets
Related tools
- JWT DecoderDecode a JWT, read its claims in human time and verify the signature with a secret or public key.
- UUID GeneratorGenerate UUID v4 or time-ordered v7 in bulk, and validate or decode any UUID.
- Number Base ConverterConvert whole numbers between binary, octal, decimal, hex and any base 2–36, with two's complement.
- Time Zone ConverterConvert a time between any cities or IANA time zones, DST-correct, with a meeting planner.
- Date Difference CalculatorYears, months, weeks and days between two dates, with an option to include the end date.