Unix Timestamp Converter with Milliseconds
Convert Unix timestamps to human-readable dates and vice versa
Timestamp → Date
Date → Timestamp
What is a Unix timestamp?
A Unix timestamp counts the seconds elapsed since January 1, 1970 at 00:00:00 UTC — the Unix epoch. It's the standard way machines store points in time: you'll find it in server logs, API responses, database columns, JWT claims like exp and iat, and cron debugging output. Compact and timezone-free, it's ideal for computers and unreadable for humans.
This converter goes both directions: paste a timestamp to get UTC, local, ISO 8601 and relative renderings, or paste a date string (or pick one from the calendar input) to get the epoch value in seconds and milliseconds. It auto-detects the unit — 10 digits or fewer is treated as seconds, more as milliseconds — which catches the single most common off-by-1000 mistake. Everything runs in your browser; nothing you enter is uploaded or logged.
When to use it
Reach for it when you're staring at raw epoch values in a log line and need to know whether that request happened before or after the deploy, when a JWT's exp claim needs sanity-checking, or when an API rejects your date and you need the exact epoch value for a query parameter or test fixture.
The dual UTC/local output matters more than it looks: a surprising number of "missing data" bugs are really a timezone offset between the server's UTC storage and the browser's local rendering. Seeing both side by side settles the question immediately, and the relative line ("3h ago") tells you at a glance whether a value is plausibly recent or wildly wrong.
Example
Paste 1700000000 and convert: you get Tue, 14 Nov 2023 22:13:20 GMT as UTC, the same instant in your local timezone, the ISO form 2023-11-14T22:13:20.000Z, and how long ago that was. Going the other way, enter 2025-01-01T00:00:00Z to get 1735689600 seconds (1735689600000 ms) — ready to drop into a query or a test. The "Copy link to this result" button encodes your input into the URL fragment so a teammate opens the page with the same conversion already done.
How to use the Unix Timestamp Converter with Milliseconds tool
- 1
Paste a timestamp or a date
Use the left card for epoch-to-date, the right card for date-to-epoch. "Use current time" fills in the present moment.
- 2
Convert
The result panel shows UTC, local, ISO 8601 and relative time — or seconds, milliseconds and ISO when converting a date.
- 3
Copy or share
Copy the result, or copy a permalink that reruns the same conversion for whoever opens it.
Frequently asked questions
How does the tool know if my value is seconds or milliseconds?
By length: values with 10 or fewer digits are treated as seconds, longer values as milliseconds. Current epoch seconds are 10 digits (until the year 2286), while millisecond timestamps are 13, so the heuristic is reliable for real-world values.
Which timezone is the output in?
Both. The UTC line is timezone-independent; the Local line uses your browser's timezone setting. The ISO 8601 line is always UTC (the trailing Z). If two people see different Local lines for the same link, that's their machines' timezones — the instant is identical.
Is anything I enter sent to a server?
No. Conversion is plain JavaScript Date arithmetic running entirely in your browser. Timestamps and dates you paste never leave your machine.
Can I convert negative timestamps or dates before 1970?
Yes — negative epoch values represent instants before January 1, 1970 and JavaScript dates handle them fine. Note that some external systems (especially ones storing timestamps as unsigned 32-bit integers) cannot, so check the consumer of the value.
Related Converter Tools
ENV to JSON
Convert .env files to JSON format
ENV to Docker Compose
Convert .env files to docker-compose environment snippet
Query String to JSON
Parse URL query strings into JSON objects
JSON to Query String
Convert JSON objects to URL query strings
CSV to JSON Converter with Semicolon and Tab Delimiters
Convert CSV data to JSON array format
JSON to CSV Converter with Headers from Every Key
Convert JSON arrays to CSV format
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

