Epoch Converter

☀️
🌙
DateTime to Epoch Converter
Convert Date/Time to Unix epoch (seconds, ms, μs, ns)

Select or enter a date/time

Interpret the above time in this timezone

Epoch time in Milli, Micro, Nano Seconds

— Select date/time above —

DateTime to Epoch Converter

Use this tool to convert a calendar Date & Time into Unix epoch time. It supports seconds, milliseconds, microseconds, and nanoseconds.

How to Use

  1. Date & Time
    Click the field or the calendar icon and select a date and time.
    You can also type manually: YYYY-MM-DD HH:mm:ss (or use your locale format).
  2. Timezone
    Choose how to interpret the date/time you picked:
    • Local Time — Uses your system timezone (e.g., Australia/Sydney).
    • Specific Zone — Pick a zone like UTC, Europe/London, etc.
    The same clock time represents a different instant if you change the timezone (offsets differ).
  3. Epoch Time
    After selecting a valid date/time, the converter shows:
    • Seconds since 1970-01-01 00:00:00 UTC
    • Milliseconds (13 digits)
    • Microseconds (16 digits)
    • Nanoseconds (19 digits)
    Values are auto-calculated from the exact instant your input represents in the chosen timezone.

Examples

  • 2025-09-16 13:45:30 in UTC → Epoch seconds: ...
  • The same clock time in Australia/Sydney will yield a different epoch because of the offset.

Notes

  • DST aware: The converter applies daylight-saving rules for the selected timezone.
  • Formatting: Input can be typed or picked via the calendar. If typing, include the time (e.g., 2025-09-16 13:45) for precise results.
  • Copying: Use the copy button (if available) to copy any epoch value.

Troubleshooting

  • If the epoch doesn’t appear, make sure the Date & Time field is valid and a timezone is selected.
  • Avoid ambiguous clock times around DST transitions; prefer UTC for exact reproducibility.