Timestamp Converter

Convert between Unix timestamps and readable dates with custom formatting.

Frequently asked questions

What is a Unix timestamp?
It is the number of seconds (or milliseconds) elapsed since 1970-01-01T00:00:00Z. Most APIs use it to represent dates compactly as a number.
Seconds or milliseconds — which do I have?
If the number has 10 digits it is seconds; 13 digits means milliseconds. This tool can convert either — pick the matching unit.
Which tokens does the custom format support?
YYYY or YY (year), MM/M (month), MMM (Jan–Dec), DD/D (day), ddd (Mon–Sun), HH/H (0–23 hour), mm (minutes), ss (seconds), SSS (milliseconds), A (AM/PM), Z (UTC offset like +08:00), X (Unix seconds), x (Unix milliseconds). Anything else is kept literally.
Does the converter handle daylight saving time?
Local time uses your browser's time zone rules at the instant being converted, so DST is applied. UTC and the fixed offsets such as UTC+08:00 are constant and have no daylight saving.
Why is my converted time off by a few hours?
A Unix timestamp itself is time-zone independent — it always represents the same instant. The displayed date depends on the selected time zone, so a mismatch usually means local time was compared with UTC. Server logs are commonly written in UTC.

About this tool

A Unix timestamp counts seconds (or milliseconds) since 1970-01-01T00:00:00Z, the standard way APIs and databases store instants. This converter turns timestamps into readable dates and back, shows equivalent values in several formats, and supports arbitrary time zones and custom date templates.

How to use it

  1. Paste a timestamp or an ISO-style date into the input field.
  2. Select whether the number is in seconds or milliseconds.
  3. Choose the time zone and an output format, or write a custom template.
  4. Copy the value you need from the result cards — seconds, milliseconds, UTC, RFC 2822 or the formatted date.

← All tools