Timestamp Converter

Convert Unix timestamps to readable dates and convert dates back to seconds or milliseconds. See UTC, local time, and ISO 8601 output at once.

Current time reference

These values update in real time, which makes them useful for logs, API tests, seed data, and quick debugging.

Current Unix seconds1773859134
Current Unix milliseconds1773859134752
Browser local timeWed, March 18, 2026 at 6:38:54 PM UTC
UTC timeWed, March 18, 2026 at 6:38:54 PM UTC

Timestamp to date

Auto-detects common 10-digit second timestamps and 13-digit millisecond timestamps. Paste a numeric value to inspect it instantly.

Detected unitmilliseconds
Local timeWed, March 18, 2026 at 6:38:54 PM UTC
UTC timeWed, March 18, 2026 at 6:38:54 PM UTC
ISO 86012026-03-18T18:38:54.752Z
Relative to nownow

Date to timestamp

Convert a browser-local date and time into Unix seconds and milliseconds for APIs, logs, and databases.

Date input is interpreted in your current browser time zone.

Unix seconds
1773859134
Unix milliseconds
1773859134000
Local timeWed, March 18, 2026 at 6:38:54 PM UTC
UTC timeWed, March 18, 2026 at 6:38:54 PM UTC
ISO 86012026-03-18T18:38:54.000Z

Unix timestamp converter guide

A Unix timestamp is a numeric representation of time elapsed since January 1, 1970 at 00:00:00 UTC. It appears everywhere in backend logs, databases, JavaScript dates, analytics events, and API payloads, so quickly checking whether a value is in seconds or milliseconds saves a lot of debugging time.

Common use cases

  • Turn raw log timestamps into readable dates during debugging
  • Validate whether an API field is using seconds or milliseconds
  • Generate current timestamp values for fixtures, seed data, and test payloads
  • Debug timezone mismatches between frontend and backend systems

Recommended best practices

  • Document timestamp fields explicitly as seconds or milliseconds in your API schema.
  • When debugging external systems, compare timestamps with ISO 8601 strings for clarity.
  • Store canonical values in UTC and only apply local timezone formatting at the presentation layer.
  • In JavaScript, keep conversion helpers separate so Date.now() values are not mixed with Unix seconds.

Seconds vs milliseconds

10-digit values are usually seconds

Values like 1710403200 are typically Unix seconds. They are common in backend logs, SQL functions, and many server-side languages.

13-digit values are usually milliseconds

Values like 1710403200000 are typically Unix milliseconds. They are common in JavaScript Date.now(), browser events, and some document databases.

Wrong units create huge date shifts

Treat seconds as milliseconds and you jump back toward 1970. Treat milliseconds as seconds and you end up far in the future. Unit checks matter.

Frequent implementation mistakes

  • Sending JavaScript Date.now() directly into an API that expects seconds
  • Displaying a UTC timestamp as local time without making the conversion explicit
  • Assuming both frontend and backend use the same unit without checking the contract
  • Forgetting that datetime-local inputs are interpreted in the browser's local time zone

Related developer tools

UUID Generator

Generate request IDs and event IDs that are often used together with timestamps.

JSON Formatter

Inspect API payloads that include timestamp fields and validate their structure.

Frequently Asked Questions

Yes. A Unix timestamp represents an absolute point in time relative to UTC. Time zones only affect how that value is displayed to people.
In most systems, 10 digits means seconds and 13 digits means milliseconds. JavaScript Date.now() returns a 13-digit millisecond value.
The datetime-local field is interpreted in the current browser's local timezone. That means the same visual value can map to a different UTC time on systems in other zones.
Yes. Negative Unix timestamps represent moments before January 1, 1970 UTC and are supported here as well.