Time & Date

Timestamp Converter

Convert Unix timestamps to UTC and local date/time, or turn supported date strings into Unix timestamps.

Run tool

The Timestamp Converter handles two common tasks in one place. You can turn a Unix timestamp into a readable date and time, or turn a date string into a Unix timestamp. For timestamp-to-date conversion, the tool accepts whole seconds or milliseconds. If the number is greater than 1,000,000,000,000, it is treated as milliseconds and divided by 1,000. Otherwise, it is read as seconds. The result shows UTC and local date-time values, plus separate date, time, weekday, seconds, and milliseconds fields. For date-to-timestamp conversion, the tool recognizes a specific set of text patterns, including ISO-style formats like 2025-01-15T10:30:00, common date-only forms like 2025-01-15, and several regional styles such as 15.01.2025 or 01/15/2025. The parsed date is treated as a naive local time, so the resulting timestamp depends on your local timezone. The default mode is timestamp to date; you can switch to date to timestamp. Blank input, invalid timestamp text, or a date that does not match any supported pattern will not produce a conversion.

Instructions

  1. Choose the conversion direction from the Mode menu: Timestamp to Date (default) or Date to Timestamp.
  2. In the Timestamp field, enter a Unix timestamp in seconds or milliseconds. Whole numbers and decimal text are accepted.
  3. In the Date String field, enter a date in one of the supported formats, such as 2025-01-15 10:30:00 or 01/15/2025.
  4. Click the Run button to start the conversion.
  5. Read the result panel: for timestamp input, you get UTC and local date-time values plus separate date, time, weekday, seconds, and milliseconds. For date input, you get the Unix timestamp.
  6. If the output does not appear, check that the input matches a supported format and that the mode matches the field you filled.

Examples

  • Enter 1700000000 in the Timestamp field and select Timestamp to Date. The result shows the UTC date-time as 2023-11-14 22:13:20 and the local date-time based on your environment.
  • Enter 1700000000123 in the Timestamp field. Because the number is greater than 1,000,000,000,000, it is treated as milliseconds and converted to the corresponding date and time.
  • Enter 2025-01-15 10:30:00 in the Date String field and select Date to Timestamp. The tool returns the Unix timestamp for that local date and time.
  • Enter 01/15/2025 in the Date String field. The tool parses it as January 15, 2025 and returns the timestamp for midnight local time.

FAQ

What timestamp formats does the converter accept?

The tool accepts whole numbers or decimal text. If the value is greater than 1,000,000,000,000, it is treated as milliseconds and divided by 1,000. Otherwise, it is treated as seconds.

Which date string formats are supported?

The tool recognizes a fixed set of patterns: ISO-like formats such as 2025-01-15T10:30:00 or 2025-01-15 10:30:00, date-only forms like 2025-01-15, European styles like 15.01.2025, US styles like 01/15/2025, and formats with month names like 15 January 2025 or 15 Jan 2025.

Does the converter handle time zones?

For timestamp-to-date, the result includes both UTC and local representations, where local depends on your device's timezone. For date-to-timestamp, the date string is treated as a naive local time, so the timestamp is calculated using your local timezone.

What happens if I enter an invalid date string?

If the date text does not match any of the recognized patterns, the tool will not produce a conversion result. Check the format and try again.

Can I convert a timestamp with milliseconds?

Yes. If the timestamp is greater than 1,000,000,000,000, it is treated as milliseconds and divided by 1,000 before conversion. The result includes a milliseconds field.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.