Unix Timestamp Converter
The Unix Timestamp Converter turns Unix timestamps (also called epoch time) into human-readable dates and converts dates back into timestamps. Paste a number to see what date it represents, or pick a date and time to get its exact timestamp.
It handles both seconds (10 digits) and milliseconds (13 digits) automatically, shows the result in Local, UTC, ISO 8601, and relative formats, and supports any UTC offset plus batch conversion for many timestamps at once. It is built for developers debugging APIs and logs, data analysts working with timestamp data, system administrators, QA engineers, and anyone who runs into a raw epoch number and needs to read it.
How to Use the Unix Timestamp Converter
Convert a timestamp to a date
Type or paste a Unix timestamp into the Timestamp → Date field. A badge shows whether it was read as sec or ms, and the date appears instantly in Local, UTC, ISO 8601, and relative form. Use the Quick fill buttons — Now, Start of Day, End of Day, or Epoch 0 — to drop in a value fast.
Convert a date to a timestamp
In the Date → Timestamp card, pick a date and time (or type them in), then choose a Timezone: Local, UTC, one of the common presets, or a Custom UTC offset. The matching timestamp is shown in both Seconds and Milliseconds.
Copy any value
Click the Copy button next to any result — the current timestamp, a converted date, or a generated number — to put the exact value on your clipboard, confirmed by a quick toast. Timestamps are copied as plain numbers with no extra formatting.
Batch convert many at once
Open Batch Convert, paste one timestamp per line, and click Convert to see every result in a table. Invalid lines are flagged, and Copy All exports the rows tab-separated, ready to paste into a spreadsheet.
Features
Live Current Timestamp
A running clock shows the current Unix timestamp in both seconds and milliseconds, updating every second. Pause it to freeze and copy an exact moment.
Auto-Detection of Format
The converter reads 10-digit input as seconds and 13-digit input as milliseconds automatically, with a badge that shows the detected unit.
Multiple Output Formats
Each conversion appears as Local time, UTC, ISO 8601 (such as 2024-01-01T00:00:00.000Z), and a friendly relative time like "2 hours ago".
Comprehensive Timezone Support
Convert dates using your local zone, UTC, 25+ common timezone presets including half-hour offsets, or any custom UTC offset you enter.
Batch Conversion
Paste many timestamps, one per line, and convert them all at once. Invalid entries are flagged and results export tab-separated for spreadsheets.
Instant Copy
Every value has a one-click Copy button that puts the exact, unformatted number or date on your clipboard with a confirmation toast.
Responsive Design
The two converter cards sit side by side on desktop and stack into a touch-friendly layout on tablets and phones, keeping full functionality.
Dark Mode Support
The interface follows your system preference or theme toggle, so it stays comfortable to read in any lighting.
Frequently Asked Questions
What is a Unix timestamp (epoch time)?
A Unix timestamp is a count of the seconds (or milliseconds) that have passed since the Unix Epoch — January 1, 1970, 00:00:00 UTC. "Unix timestamp" and "epoch time" mean the same thing. For example, 0 is the epoch itself and 1704067200 is January 1, 2024 00:00:00 UTC.
How do I convert a Unix timestamp to a date?
Paste the number into the Timestamp → Date field. The converter detects whether it is seconds or milliseconds and shows the date right away in Local time, UTC, ISO 8601, and relative time. Click Copy next to whichever format you need.
Seconds or milliseconds — what is the difference between 10 and 13 digits?
A 10-digit timestamp is in seconds, the form used by most APIs, databases, and server languages like PHP and Python. A 13-digit timestamp is in milliseconds, used by JavaScript (Date.now()) and Java when sub-second precision matters. This tool detects the length and converts either one, so you do not have to choose.
What is the current Unix timestamp?
The live clock at the top shows the current Unix timestamp in both seconds and milliseconds, ticking once per second. Use the Pause button to freeze it on an exact moment, then copy the value with one click.
How do I convert a date back into a timestamp?
In the Date → Timestamp card, choose a date and time, pick the timezone they belong to (Local, UTC, a preset, or a custom UTC offset), and the matching timestamp appears in both seconds and milliseconds. The timezone setting determines the exact value, since the same wall-clock time is a different timestamp in each zone.
Why does the same timestamp show different times?
A timestamp marks a single instant, but that instant is a different local time around the world. The timestamp 1704067200 is January 1, 2024 00:00:00 in UTC, 07:00:00 in Bangkok (UTC+7), and December 31, 2023 19:00:00 in New York (UTC-5). The Local and UTC outputs let you see both at once.
How do I get the current timestamp in my programming language?
Common ways to read the current epoch time:
- JavaScript:
Math.floor(Date.now() / 1000)for seconds,Date.now()for milliseconds - Python:
import time; int(time.time()) - PHP:
time() - Java:
System.currentTimeMillis()for milliseconds - Bash:
date +%s
What range of timestamps does this tool support?
The converter accepts timestamps from the epoch (January 1, 1970) up to the year 2200, an upper limit of roughly 7258118400 seconds, which covers virtually every real-world value. It focuses on dates from 1970 onward, so negative timestamps before the epoch are outside its range.
Is my data private?
Yes. Every conversion happens locally in your browser. No timestamps, dates, or any other input is sent to a server, and the tool keeps working offline once the page has loaded.
No comments yet. Be the first to comment!