Unix Timestamp Converter
Convert Unix epoch timestamps (in seconds or milliseconds) to readable dates in UTC, Indochina Time (ICT / Phnom Penh UTC+7), and your local timezone, or convert any date back to a timestamp.
Convert Unix Timestamp to Human Date
Convert Human Date to Unix Timestamp
About & How It Works
Technical calculation logic, standards, and operational details
The Unix Timestamp Converter translates Unix epoch timestamps — the number of seconds (or milliseconds) elapsed since January 1, 1970 00:00:00 UTC — into human-readable date and time representations across multiple time zones, with dedicated support for Indochina Time (ICT, UTC+7), the official timezone of Cambodia, Laos, Thailand, and Vietnam. Unix timestamps are the universal time representation in backend engineering: all major databases (PostgreSQL, MySQL, MongoDB), cloud platforms (AWS, GCP, Firebase), logging systems (CloudWatch, Datadog, Splunk), and programming language standard libraries use epoch integers as their internal time currency. The reverse conversion — date picker to timestamp — enables developers to construct time-based database queries and API filters.
Algorithmic Logic & Calculation
The tool detects whether the input is seconds-length (10 digits, <2,000,000,000) or milliseconds-length (13 digits) and normalizes to milliseconds before constructing a JavaScript Date object. It then formats the date string in multiple timezones using Intl.DateTimeFormat with explicit timeZone options: 'UTC', 'Asia/Phnom_Penh', and the browser's local timezone. The current timestamp button polls Date.now() in real-time with a 1-second refresh interval. For the reverse direction (date-to-timestamp), the tool parses the selected date at midnight UTC and returns both second and millisecond epoch values.
Unix epoch time follows POSIX.1-2017 standard (IEEE Std 1003.1). Timezone display uses IANA Time Zone Database identifiers (e.g., Asia/Phnom_Penh). Formatting follows RFC 3339 / ISO 8601.
Key Features & Capabilities
Auto-Detect Seconds vs Milliseconds
Automatically identifies 10-digit second timestamps and 13-digit millisecond timestamps without manual selection.
Indochina Time (ICT UTC+7) Display
Shows the exact date and time in Cambodia/Phnom Penh timezone (Asia/Phnom_Penh) alongside UTC.
Current Timestamp with Live Refresh
Displays the current Unix timestamp in real-time, refreshing every second.
Date → Timestamp Reverse Conversion
Convert any human-readable date back to its Unix timestamp in both seconds and milliseconds.
Practical Real-World Use Cases
API Debugging & Log Analysis
Developers decode epoch timestamps from REST API responses or server log files to identify when specific events occurred in Phnom Penh local time.
Database Query Time Filtering
Backend engineers convert specific calendar dates into epoch ranges to construct WHERE created_at BETWEEN ? AND ? SQL queries.
JWT & Token Expiry Inspection
Security engineers decode the exp and iat Unix timestamps inside decoded JWT payloads to verify token validity windows.
How to Use
- Enter a Unix timestamp in seconds or milliseconds, or pick a date.
- View conversions across multiple timezones including Phnom Penh (UTC+7).
- Copy current timestamp or formatted dates.
Client-Side Security Guide: Why In-Browser Tools Protect Your Sensitive Data
Learn how modern WebAssembly and JavaScript enable private, 100% in-browser utilities that guarantee zero data leakage, ideal for API keys, JSON payloads, and sensitive tokens.
Frequently Asked Questions
Related Developer Tools
View all →JSON Formatter & Validator
Prettify, minify, validate, and format JSON code with syntax diagnostics.
UUID / GUID Generator
Generate cryptographically random UUID v4 strings in bulk with custom casing.
Base64 Encoder & Decoder
Encode and decode UTF-8 text and files/images to Base64 format.
