Developer Tools

Unix Timestamp Converter

Turn a Unix timestamp into a readable date, or a date into a timestamp: seconds, milliseconds, microseconds and nanoseconds with auto-detection, UTC plus local and 11 extra timezones, relative time, and batch conversion, all in your browser.

Current Unix time
1793269496
1793269496482 milliseconds

Your conversion will appear here. Enter a timestamp or a date and press Convert.

Privacy: conversion runs locally in your browser. Nothing you enter is uploaded or logged.

More developer tools: JSON Formatter · JSON to CSV Converter · Text Diff Checker · UUID Generator

How this calculator works

A Unix timestamp is a single integer counting the seconds since January 1, 1970, 00:00:00 UTC, the moment called the Unix epoch. APIs, databases, log files and JWT tokens all store time this way because one number is timezone-free, sortable and trivially comparable, but humans cannot read it at a glance. This tool converts in both directions, entirely in your browser. Paste a timestamp and get its date; enter a date and get its timestamp.

Timestamps come in four units and mixing them up is the classic bug: 10 digits means seconds, the format most APIs and databases use; 13 digits means milliseconds, what JavaScript Date.now() returns; 16 digits means microseconds, common in high-precision logs; 19 digits means nanoseconds, used by Go and system clocks. A millisecond value read as seconds lands in the year 56,189, which is how you spot the mistake. Leave the unit on Auto-detect and the tool reads the digit count for you. Worked example: 1700000000 is 10 digits, so seconds, and converts to Tuesday, November 14, 2023, 22:13:20 UTC, ISO 8601 2023-11-14T22:13:20.000Z; the same moment in milliseconds is 1700000000000.

Three features save real debugging time. First, timezones: the same instant is shown in UTC, in your local time, and in any of 11 extra zones from New York to Sydney, because a log timestamp that looks wrong is often just a zone mismatch, not a wrong value. Second, relative time: "3 hours ago" or "in 2 days" answers the question behind most conversions, whether a token expired or a scheduled job already ran. Third, batch mode: paste a whole column of timestamps from a log file, one per line, and get every date back as a table you can copy as CSV, instead of converting values one by one. Nothing you enter leaves your machine in any mode, which is why the tool is safe for production log excerpts and API payloads.

Frequently asked questions

How do I convert a Unix timestamp to a date?
Paste the number into the tool and press Convert. It auto-detects seconds, milliseconds, microseconds or nanoseconds from the digit count and shows the date in UTC, ISO 8601, your local time and your chosen timezone, plus how long ago it was or how far in the future it is.
What is the difference between seconds and milliseconds timestamps?
Seconds timestamps have 10 digits and are used by most APIs, databases and JWT tokens; milliseconds timestamps have 13 digits and are what JavaScript Date.now() returns. Dividing a millisecond value by 1000 gives seconds. Reading milliseconds as seconds is the most common timestamp bug: it places the date tens of thousands of years in the future.
How do I convert a date to a Unix timestamp?
Switch to the Date to timestamp tab, enter the date and time, and press Convert. The result is given in Unix seconds, milliseconds and microseconds. The date you enter is read as UTC, so the timestamp is the same no matter which timezone you are in.
What is the Unix epoch?
The Unix epoch is January 1, 1970, 00:00:00 UTC. A Unix timestamp counts the seconds (or milliseconds, microseconds or nanoseconds) elapsed since that moment. It ignores leap seconds and is timezone-independent, which is why every programming language and database understands it.
Can I convert many timestamps at once?
Yes. Use the Batch convert tab, paste one timestamp per line, and press Convert all. Each row shows its ISO 8601 date and UTC date, and the whole table can be copied as CSV for a spreadsheet or a ticket.
Is anything I enter uploaded or stored?
No. All conversion runs locally in your browser with no server round trip, no account and no storage. Closing the page discards everything you entered, which is why the tool is safe for production log excerpts.
Disclaimer: Results are estimates for planning purposes only and are not financial advice. Actual loan terms, taxes and investment returns vary. Consult a qualified professional before making financial decisions.