Unix Timestamp to Date Converter: Seconds & Milliseconds
Convert a Unix timestamp in seconds or milliseconds to a date in UTC, your local time or another timezone, and turn a date back into epoch. Live clock.
Updated November 2026
Reviewed by Rafael Duarte
Tuesday, May 14, 2024 at 11:00:00 AM
Tuesday, May 14, 2024 at 11:00:00 AM
2024-05-14T11:00:00.000Z
Select a date above.
Coordinated Universal Time
<0.1ms Response
Programmatic Usage
Quickly use timestamps in your code snippets.
# JavaScript
Math.floor(Date.now() / 1000); // seconds
Date.now(); // milliseconds
new Date(1715684400 * 1000)
.toISOString();
# Python
import time
int(time.time()) # seconds
from datetime import datetime
datetime.fromtimestamp(1715684400)
How to use this Unix timestamp converter
Works both ways, with the current epoch time always on screen
1. Paste a timestamp or pick a date
Type an epoch value in the Unix to Human-Readable panel, or pick a date and time (down to the minute) in the Human-Readable to Unix panel.
2. Choose the unit and timezone
Tick Seconds or Milliseconds yourself, since the tool does not guess the unit from the number of digits. Then pick the timezone the result should be shown in.
3. Copy the result you need
Local time, UTC and ISO 8601 appear at once, and each one has its own COPY button. On the date side, the Unix value has a Copy button and the ms and hex values copy when clicked.
What this timestamp to date converter does
Built for the checks developers run dozens of times a day
Live current Unix timestamp
The CURRENT UNIX TIME bar updates every second. Click the number to copy it, in seconds or milliseconds depending on the unit you picked.
Seconds and milliseconds
Switch between 10-digit seconds and 13-digit milliseconds with the radio buttons. The choice is manual, so match it to the value you paste.
Local time, UTC and ISO 8601 together
One conversion shows the date in your chosen timezone, in UTC and as an ISO 8601 string. The reverse panel also gives the value in ms and hex.
"Use Now" shortcut
Drops the current Unix time straight into the input and converts it immediately.
Timestamp conversion examples
How common epoch values map to readable dates
When you'll reach for a timestamp converter
The situations that come up most for people using this tool
Debugging API responses
Fields like created_at and expires_at come back as raw Unix time — convert them on the spot while you debug.
Inspecting JWT tokens
The exp, iat and nbf claims are Unix seconds. Paste one here to see the exact date, or open the JWT decoder to read the whole token.
Reading logs across timezones
Line up events between services without running a query just to see what time something happened.
Writing database queries
Sanity-check stored records or build date-range filters by hand before running a query.
Common timestamp mistakes
The ones that trip people up most
Mixing up seconds and milliseconds
13 digits usually means milliseconds (JavaScript's Date.now()), 10 digits means seconds (POSIX, Python, PHP). Paste a 13-digit value with Seconds selected and you get a date tens of thousands of years in the future, with no warning. Switch to Milliseconds.
Assuming a timestamp carries a timezone
A Unix timestamp is a count from the epoch in UTC. The timezone only matters when you turn it into a readable date. Storing local datetimes without a zone causes real trouble, as described in Timestamps Without Timezone.
Expecting native microsecond support
For 16- or 19-digit values (micro- or nanoseconds), divide by 1,000 or 1,000,000 before pasting them in.
Why use this Unix time converter
The current Unix timestamp stays on screen as a reference point, so you don't need a terminal just to check what "now" is in epoch time. Use Now drops it into the input in one click.
Both directions sit side by side: epoch to date in the timezone you choose, UTC and ISO 8601, and date to epoch in seconds, milliseconds and hex. Everything runs in your browser.
Seconds vs. milliseconds
The single biggest source of confusion with Unix timestamps
Date.now(), Java System.currentTimeMillis()Frequently asked questions
It's almost certainly in milliseconds, the unit JavaScript's Date.now() and Java's System.currentTimeMillis() return. Divide by 1000 to get the 10-digit seconds value that Python's time.time(), PHP and date +%s work with.
Paste it into the EPOCH TIMESTAMP field and select Milliseconds. For example, 1757418155000 becomes Tuesday, September 9, 2025, 11:42:35 UTC. If you leave Seconds selected, the same number lands in the year 57660.
Yes. It's always a count of seconds (or milliseconds) since January 1, 1970 UTC, with no timezone attached. Timezones only get applied when you convert that number into a readable date for someone to look at.
It's shown live in the CURRENT UNIX TIME bar below the two panels, updating every second. Click the number to copy it, or click Use Now to load it into the converter. In code: JavaScript uses Math.floor(Date.now()/1000), Python uses int(time.time()), and Bash uses date +%s.
Yes, using a negative number. -86400 converts to December 31, 1969. Most modern languages and databases handle negative epoch values correctly.
It's the international standard for writing dates as strings, like 2024-04-07T00:00:00Z. It's unambiguous and sorts correctly as plain text, which is why many APIs and log formats use it. JWT is an exception: its exp, iat and nbf claims are plain Unix seconds, not ISO strings.
Pick the target zone in the TIMEZONE dropdown under the timestamp input. The list has your browser's zone, UTC and 28 major cities. The converted time uses the offset in effect at that moment, including daylight saving. The GMT offset printed next to LOCAL TIME is today's offset, so for a past or future date on the other side of a DST change, trust the time itself, not that label.
References
Related Tools
- Time Zone Meeting Planner & Converter for Up to 6 Cities Developer See the time in up to 6 cities, spot the hours when most of them are in working hours on a DST-aware heatmap, and share a link with the time converted.
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.
- Base64 Decode Online — Free Base64 to Text Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.