Time & Date Utilities100% Client-Side

Convert a UTC Date to a Unix Timestamp

Paste a date or timestamp to express that instant as a Unix number. A numeric time-zone offset is applied before conversion. An input without an offset is interpreted as UTC, including a date by itself at midnight. Choose seconds or milliseconds for the result. This helps when preparing numeric fixture values from dates that are easier to read in their original written form.

Configuration Options
Input
24 chars•1 lines
Output

Reverse tool

Unix Timestamp to UTC Date Converter

Convert Unix seconds or milliseconds to an ISO-style UTC date and time. Check the timestamp unit and preserve millisecond precision in the result.

Open Unix Timestamp to UTC Date Converter
Example input
1704067200
Example output
2024-01-01T00:00:00.000Z

How to Use the UTC Date to Unix Timestamp Converter

  1. 1Paste a date as YYYY-MM-DD or a timestamp with a date and clock time.
  2. 2Include Z or a numeric offset when the source provides one.
  3. 3Choose seconds or milliseconds for the resulting Unix timestamp.
  4. 4Check the result by converting it back to UTC with the same unit.

Input & Output Examples

The numeric offset moves the given clock time back six hours to midnight UTC. Choose seconds for this result.

Input Sample
2024-01-01T06:00:00+06:00
Expected Output
1704067200

Choose milliseconds. The instant is 125 milliseconds before the Unix epoch.

Input Sample
1969-12-31T23:59:59.875Z
Expected Output
-125

Practical Developer Workflows

  • Prepare a numeric timestamp for a fixture whose source uses an ISO-style date.
  • Check whether different offset spellings describe the same instant.
  • Convert a date-only reference to the numeric value for midnight UTC.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

An input with no explicit zone is read as UTC. It does not assume the computer's local time zone. Add the original numeric offset if the written time was meant to represent a local clock rather than UTC.

Explore Other Tools

6 suggested tools

View all tools