Unix timestamp converter (epoch converter)
Convert Unix timestamps to dates and dates to timestamps, in any time zone. Seconds, milliseconds and microseconds are detected for you.
Current Unix time
—
Timestamp to date
Enter a timestamp
Paste a Unix timestamp in seconds, milliseconds or microseconds, or select Now.
Date to timestamp
Read as a time in the time zone chosen above.
Pick a date and time
Choose a date and time, or select Now. Its Unix timestamp appears here.
How to convert a Unix timestamp
- Paste a timestamp under Timestamp to date, or select Now to use the current time.
- With Detect automatically, the unit comes from the number of digits and is shown under the field. If it’s wrong, choose Seconds, Milliseconds or Microseconds from the Unit menu.
- Read the date in UTC, in your device’s time zone and in the Time zone chosen at the top, plus RFC 2822, how long ago it was, the day of the week, and the value in seconds and milliseconds. The dates and numbers each have a copy button.
- To go the other way, pick a date and time under Date to timestamp. It’s read in the chosen time zone and converted to seconds and milliseconds.
What a Unix timestamp is
A Unix timestamp (also called epoch time or POSIX time) is the number of seconds since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It names a moment, not a wall clock: 1700000000 is 22:13:20 on November 14, 2023 in London and 17:13:20 the same day in New York. Negative numbers are moments before 1970.
Time zones matter only when you turn a timestamp into a calendar date, or a date into a timestamp. The converter uses your browser’s time zone database, so daylight saving rules are applied for each date, including historical changes.
Formats and units
- Detection
- Up to 11 digits are read as seconds, 12 to 14 as milliseconds and 15 to 17 as microseconds; longer numbers are rejected. Spaces, underscores and commas between digits are ignored.
- Seconds
- 10 digits for dates from 2001 to 2286. Used by Unix tools, PHP’s
time(), Python’sint(time.time())and most APIs. - Milliseconds
- 13 digits. Used by JavaScript’s
Date.now()and Java’sSystem.currentTimeMillis(). - Microseconds
- 16 digits. Common in databases and tracing tools. The UTC date keeps all 6 decimal places; the other dates are shown to the millisecond.
- ISO 8601
2023-11-14T22:13:20.000Z, withZfor UTC or an offset such as+01:00in other zones.- RFC 2822
Tue, 14 Nov 2023 23:13:20 +0100, used in email headers. Shown for dates from 1900.
Troubleshooting
- The date is in 1970. The number was probably read in the wrong unit, for example milliseconds read as microseconds. Check the detected unit and set it yourself if needed.
- The date is thousands of years away. The opposite case: a millisecond timestamp read as seconds. Choose Milliseconds or Detect automatically.
- “Enter a whole number.” Fractional seconds such as
1700000000.5, as Python’stime.time()returns, aren’t accepted. Drop the fraction, or use milliseconds (1700000000500). - “This time doesn’t exist.” On the day clocks move forward, an hour is skipped (for example 02:00–03:00). The converter uses the time the same distance after the change.
- “This time happens twice.” On the day clocks move back, an hour repeats. The converter uses the first occurrence.
How your data stays private
Everything happens in your browser, on your device. Your files and text are never uploaded, never stored, and never put in the address bar.
- The site’s security policy (
connect-src 'self') tells your browser to block any attempt by the page to send data to another server. - Only your preferences, such as the theme and a tool’s last-used options, are saved in your browser’s local storage. Never your content.
- To check it yourself, open your browser’s developer tools, select the Network tab, and use the tool: no request carries your data.
There is no account, no sign-up and no watermark. After your first visit, pages open without a connection; a tool’s larger parts, such as the PDF and image engines, are saved the first time you use it, so it works offline from then on.
Frequently asked questions
What is the current Unix timestamp?
It’s shown live at the top of the tool and updates every second. Select “Copy current” to copy it, or “Pause” to stop it on a value. A Unix timestamp counts the seconds since January 1, 1970 at 00:00:00 UTC, so it is the same everywhere in the world at a given moment.
Seconds or milliseconds: how can I tell?
Count the digits. Today’s dates are 10 digits in seconds (used by Unix, PHP and most APIs), 13 digits in milliseconds (JavaScript’s Date.now(), Java) and 16 digits in microseconds (common in databases and tracing tools). The converter detects the unit from the digit count and tells you what it chose; you can set the unit yourself if the guess is wrong.
How do I convert a timestamp to my time zone?
Paste the timestamp. The result shows the date in UTC, in your device’s time zone and in the time zone you choose at the top, each with its UTC offset. Daylight saving time is taken into account for the date shown.
How do I convert a date to a Unix timestamp?
Pick a date and time under “Date to timestamp” and choose the time zone it is in. You get the timestamp in seconds and milliseconds. If the time doesn’t exist on that day because clocks moved forward, or happens twice because they moved back, the tool tells you which moment it used.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit number can count only up to 2,147,483,647, which is January 19, 2038 at 03:14:07 UTC. One second later the value overflows and wraps to a date in 1901. Modern systems use 64-bit numbers, which last far beyond that. This converter isn’t affected: it handles any date JavaScript can represent.
Is anything I enter sent anywhere?
No. Conversion runs in your browser using its built-in time zone data. Nothing you enter is uploaded, stored or put in the URL. Only your unit and time zone choices are remembered on this device.
Related tools
- JWT DecoderDecode a JSON Web Token’s header and claims, see when it expires, and verify its signature, all in your browser. Tokens never leave your device.
- UUID GeneratorGenerate UUID v4, sortable UUID v7 and ULIDs, up to 1,000 at a time, or inspect a UUID’s version and timestamp.
- JSON FormatterFormat, validate and explore JSON right in your browser. Your data never leaves your device.
- Base64 Encode & DecodeEncode text or files to Base64 and decode Base64 back, right in your browser. Your data never leaves your device.