Epoch Converter

Convert Unix timestamps to dates and back in any time zone, with a live clock, automatic seconds to nanoseconds detection, and batch conversion of log text.

Current Unix time

Time zone
Number unit

Related tools

What it does

Converts between Unix timestamps and human-readable dates in both directions. One box takes seconds, milliseconds, microseconds or nanoseconds (the unit is detected from the length and can be overridden), ISO 8601, RFC 2822, or a phrase like in 3 hours, and shows the result as Unix seconds and milliseconds, ISO 8601 in UTC and in your chosen time zone, RFC 2822, relative time, day of week, ISO week and day of year. A live clock shows the current Unix time, and batch mode pulls every timestamp out of a pasted column or a block of log lines.

How to use it

Paste a timestamp or a date into the box, or leave it empty to see the current time. Use the date and time pickers to go the other way, pick any IANA time zone from the searchable list, and nudge the result with the quick buttons for a minute, an hour, a day, or the start and end of the day. Switch to batch mode to paste many timestamps or raw log text and copy or download the converted table as CSV. Every value has its own copy button and the page address updates so you can share exactly what you see.

Why this one

The popular epoch converter sites split each direction into its own form, guess the unit without saying so, and bury the answer under ads and cookie banners. This one reads whatever you paste in a single box, tells you how it read it, converts whole log files at once, works offline after the first load, and your files and inputs never leave your device.

FAQ
How does it tell seconds from milliseconds, microseconds and nanoseconds?
By the number of digits. Up to 12 digits is read as seconds, 13 to 15 as milliseconds, 16 to 18 as microseconds, and 19 or more as nanoseconds, which is right for any present-day timestamp. The line under the box says which unit was used, and the Number unit switch forces a different one when a value is unusually small or large.
Can I convert many timestamps at once?
Yes. Batch mode accepts one timestamp per line or raw log text, finds every 10, 13, 16 and 19 digit Unix value and every ISO 8601 date in it, and lists each one with its line number, Unix seconds, ISO date in your chosen zone and relative time. The table can be copied or downloaded as CSV.
What date formats can I paste?
Unix timestamps in four units (with or without thousands separators or a decimal fraction), ISO 8601 with a T or a space and any UTC offset, RFC 2822 dates as found in email headers, short relative phrases such as now, tomorrow, in 3 hours and 2 days ago, and anything else your browser can parse natively. A date that names no offset is read as wall-clock time in the selected time zone, and an impossible date such as February 30 is reported instead of rolled over.

Keyboard shortcuts: press ? anywhere on this page to see them.