Unix Timestamp Converter
Chuyển Unix timestamp ↔ ngày giờ
Unix Timestamp Converter
This Unix timestamp converter lets you instantly translate any Unix timestamp — in seconds or milliseconds — into a readable date and time, and convert any date back to a Unix timestamp with a single click. It displays results in both UTC and your local timezone simultaneously, eliminating guesswork when working across systems and regions. No installation, no sign-up — just paste your value and get the answer immediately.
Benefits
Using a dedicated Unix timestamp converter saves time and prevents costly errors compared to writing one-off code snippets or doing mental arithmetic:
- Instant bidirectional conversion: Go from timestamp to date or date to timestamp without switching tools or writing code.
- Automatic format detection: The tool recognizes 10-digit second-precision timestamps and 13-digit millisecond-precision timestamps automatically.
- Side-by-side UTC and local time: Both representations are shown at once, which is critical when debugging distributed systems or APIs in different regions.
- Zero setup: Runs entirely in the browser — no libraries to import, no accounts required.
- Copy-ready output: Results can be copied directly into code, documentation, or spreadsheets.
Use cases
The Unix timestamp converter is useful across a wide range of development and data tasks:
- API debugging: Decode
created_at,expires_in, oriat/expfields in JSON responses or JWT tokens to understand exactly when events occurred. - Database inspection: Verify timestamp columns in PostgreSQL, MySQL, or MongoDB during query development or data migrations.
- JavaScript development: Cross-check
Date.now()(milliseconds) orMath.floor(Date.now()/1000)(seconds) values while building or testing time-sensitive features. - Log analysis: Quickly humanize Unix timestamps found in server logs, event streams, or monitoring tools to correlate incidents with real-world times.
- Third-party integrations: Reconcile timestamps from webhooks, Google Analytics events, or cloud services to verify event ordering and SLA compliance.
How to use
Converting a Unix timestamp takes just a few seconds:
- Step 1 — Timestamp to date: Paste your Unix timestamp (e.g.,
1717459200for seconds or1717459200000for milliseconds) into the input field. The result appears immediately in both UTC and local time. - Step 2 — Date to timestamp: Switch to the reverse mode, enter a date and time using the date picker or type an ISO 8601 string, and the corresponding Unix timestamp is generated instantly.
- Step 3 — Adjust timezone: If your local timezone differs from the default, select the correct zone from the dropdown to see an accurate local time output.
- Step 4 — Copy the result: Click the copy button next to any output field to grab the value for use in your code, query, or documentation.
Frequently asked questions
What is a Unix timestamp? A Unix timestamp is the number of seconds (or milliseconds) elapsed since 00:00:00 UTC on January 1, 1970, known as the Unix epoch. It is the standard way to represent a moment in time independently of timezone in most programming languages and databases.
How do I know if my timestamp is in seconds or milliseconds? A 10-digit number (e.g., 1717459200) is almost always seconds, while a 13-digit number (e.g., 1717459200000) is milliseconds. The converter detects this automatically, but you can override the setting manually if needed.
Why are the UTC and local time results different? UTC is a fixed global reference with no offset, while local time reflects the timezone of your device or your selected timezone. Both represent the same instant — they just express it in different regional clocks.
Can the tool handle timestamps before 1970 (negative values)? Yes. Negative Unix timestamps represent dates before January 1, 1970 and the converter handles them correctly, making it useful for historical data and legacy system migrations.