Unix Timestamp Converter

See the current Unix epoch time ticking live in seconds and milliseconds, paste any timestamp to read it as a date, or pick a date and time to get its timestamp. The converter detects whether a timestamp is in seconds, milliseconds or microseconds and shows the result in your local time, UTC, ISO 8601, RFC 2822 and as a relative time. Everything runs in your browser.

Current Unix time
–Seconds since Jan 1, 1970 UTC
–Milliseconds

Timestamp to date

Seconds, milliseconds or microseconds. Negative values are dates before 1970.
Unit
Local time ()–
UTC–
ISO 8601–
ISO 8601 with local offset–
RFC 2822–
Relative–

Date to timestamp

Time zone of this date
Unix timestamp (seconds)–
Milliseconds–
ISO 8601 (UTC)–

Runs entirely in your browser. Nothing you enter is uploaded or stored.

Rate this tool

Be the first to rate this tool

How to use the Unix Timestamp Converter

  1. Read or copy the current Unix time at the top, in seconds or milliseconds.
  2. To decode a timestamp, paste it into Timestamp to date. The unit is detected automatically, or pick it yourself.
  3. Copy the date in local time, UTC, ISO 8601, RFC 2822 or as a relative time.
  4. To go the other way, choose a date and time, say whether it is local time or UTC, and copy the timestamp.

What a Unix timestamp is

A Unix timestamp, also called epoch time or POSIX time, counts the seconds that have passed since midnight UTC on January 1, 1970, a moment known as the Unix epoch. The value 0 is that midnight, 86400 is exactly one day later, and 1700000000 is November 14, 2023 at 22:13:20 UTC. Dates before 1970 are simply negative numbers. Because a timestamp is a single number with no time zone attached, it is the same everywhere on Earth at the same instant, which is why servers, databases, log files and APIs use it to store time.

Unix time ignores leap seconds: every day is treated as exactly 86,400 seconds. That keeps the arithmetic simple, and it is how virtually all software, including JavaScript, handles it.

Seconds, milliseconds and microseconds

Different systems count in different units. Classic Unix tools, PHP and most SQL databases use seconds, a 10-digit number today. JavaScript’s Date.now() and Java use milliseconds, 13 digits. Some databases and languages, such as PostgreSQL internals and Python’s high-resolution clocks, use microseconds with 16 digits. Auto-detect looks at the size of the number: below 100 billion it is read as seconds, below 100 trillion as milliseconds, and larger values as microseconds or nanoseconds. If a value is ambiguous, choose the unit yourself with the buttons. Browsers store dates to the millisecond, so any finer digits are dropped when the date is displayed.

The date formats explained

  • Local time uses your device’s time zone, shown in the label, and includes daylight saving time where it applies.
  • UTC is Coordinated Universal Time, the reference that time zones are measured from.
  • ISO 8601, such as 2023-11-14T22:13:20.000Z, is the standard for APIs, JSON and sorting. The Z means UTC. The second version shows the same instant with your local offset, like +05:30.
  • RFC 2822, such as Tue, 14 Nov 2023 22:13:20 +0000, is the format used in email headers and many HTTP and RSS feeds.
  • Relative tells you how long ago or how far ahead the moment is.

Converting a date to a timestamp

Choose a date and time and say whether it is in your local time zone or in UTC. The same clock time gives different timestamps in different zones, so this choice matters: midnight on January 1, 2000 is 946684800 in UTC but a different number in New York or Tokyo. You can copy the result in seconds or milliseconds, along with the ISO 8601 form for checking.

A well-known limit is the year 2038 problem: systems that store seconds in a signed 32-bit integer overflow on January 19, 2038 at 03:14:07 UTC, timestamp 2147483647. Modern 64-bit systems are not affected. For related developer jobs, format API responses with the JSON formatter, decode tokens with the Base64 decoder, or create time-ordered IDs with the UUID generator.

Examples

  • 0 → Thu, 01 Jan 1970 00:00:00 +0000
  • 1700000000 (seconds) → 2023-11-14T22:13:20.000Z
  • 1700000000000 (milliseconds) → the same moment
  • 2147483647 → 2038-01-19T03:14:07.000Z, the 32-bit limit
  • January 1, 2000, 00:00:00 UTC → 946684800

Unix Timestamp Converter FAQ

How do I tell if a timestamp is in seconds or milliseconds?

Count the digits. Current dates have 10 digits in seconds and 13 in milliseconds. Auto-detect does this for you, and you can override it with the unit buttons.

Is a Unix timestamp in UTC?

Yes. A timestamp counts seconds from midnight UTC on January 1, 1970, so it has no time zone. Time zones only matter when you turn it into a readable date.

Why does my converted date look a few hours off?

You are probably comparing local time with UTC. Check the UTC row, or when converting a date to a timestamp, make sure Local or UTC matches the zone the date was written in.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit number run out of room at 2147483647, which is 03:14:07 UTC on January 19, 2038. Software using 64-bit time is not affected.

Does this tool send my data anywhere?

No. All conversions use your browser’s own clock and date functions, and nothing is uploaded.

Related tools

All Developer Tools
JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages.Base64 Encode / DecodeEncode or decode Base64 for text and files, UTF-8 safe.Compare Two ListsFind differences, common items, and unique entries between two text lists.Cron Expression GeneratorBuild cron schedules with simple menus, or paste any cron expression to explain it in plain English and see the next 5 run times.Diff CheckerCompare two texts and see every added, removed and changed line, with word or character highlights, side by side or unified.HEX to RGB ConverterConvert HEX color codes to RGB, RGBA and HSL and back, with a live swatch, color picker, alpha control and copy-ready CSS.JSON to CSVConvert a JSON array to CSV with nested objects flattened into dot-named columns, comma, semicolon or tab delimiters and a live preview.JSON to ExcelConvert a JSON array to a real Excel .xlsx spreadsheet or CSV, with nested objects flattened into dot-named columns and a live preview.PX to REM ConverterConvert pixels (px) to rem and rem to px with custom root font size and CSS table.Regex TesterTest JavaScript regular expressions live: highlighted matches, capture and named groups, indices, flags and a replace preview.URL Decode & EncodeDecode or encode URLs and query strings (percent-encoding), with + as space option and a query parameter table.Keyboard TesterPress every key and watch it light up on an on-screen keyboard to find dead, stuck or ghosting keys.Case ConverterSwitch text to UPPERCASE, lowercase, Title Case, camelCase and more.