Epoch Converter
Convert a Unix timestamp in seconds into a UTC and local date, or turn a picked date and time back into a Unix timestamp in seconds. Fill either field and it runs in your browser with no sign-up.
What this calculator does
The Epoch Converter estimates your result instantly from the values you enter, using standard date & time formulas. Convert a Unix timestamp in seconds into a UTC and local date, or turn a picked date and time back into a Unix timestamp in seconds. Fill either field and it runs in your browser with no sign-up. Calculations run in your browser, so nothing you type is sent to a server, and the output is an estimate rather than a certified or official figure.
Result
About Epoch Converter
This converter moves between Unix time and calendar time in one step. Enter a timestamp in the Unix Timestamp (seconds) box and it multiplies by 1000 to build a JavaScript date, then shows that instant as a UTC string and in your browser's local zone.
Leave the timestamp blank and pick a value in the Date & Time field instead, and the tool reports the matching Unix timestamp using Math.floor(getTime() ÷ 1000).
Formula & Mathematical Calculation
d = new Date(ts × 1000)
secs = Math.floor(d2.getTime() ÷ 1000)
Derived directly from the verified calculation function in the tool engine.
Calculation Example
Type 1000000000 into the Unix Timestamp (seconds) field and leave the date field empty. The tool evaluates new Date(1000000000 × 1000) and fills the UTC Date & Time box with Sun, 09 Sep 2001 01:46:40 GMT; the Local Date & Time box shows the same instant in your own zone.
Reverse it by picking a date and time while leaving the timestamp blank, and the result is the whole number of seconds since 1 Jan 1970 UTC.
Key Benefits
- Reads a Unix timestamp in seconds and shows both the UTC string and your local date and time
- Works in reverse, turning a chosen calendar date and time into epoch seconds
- Runs entirely in your browser with no sign-up, so nothing is sent to a server
How to Use this Calculator
-
Enter a timestamp
Type a whole number of seconds into the Unix Timestamp (seconds) field, for example 0 or 1000000000. -
Or pick a date
Leave the timestamp blank and choose a value in the Date & Time field to convert the other way. -
Calculate
Press Calculate to see the UTC Date & Time and the Local Date & Time (or the epoch seconds) for what you entered.
Assumptions & Limitations
What the calculation assumes
- Every value you enter is treated as an exact, known amount.
- Any rate or interval you enter is assumed to hold for the whole period unless the form asks for it separately.
- Results use standard published formulas and account only for the values entered above.
- Rounding is applied for display; the underlying calculation uses your full precision.
- Results are returned in the same units you enter, unless the tool states the output unit.
What it does not cover
- Epoch Converter produces a calculated result for reference and learning, not a certified or official measurement.
- Real-world outcomes differ when tolerances, rounding rules or local standards apply.
- Definitions and standards vary by region and change over time; verify the convention that applies to your case.
- Figures are only as accurate as the inputs you supply — check them before acting on the result.
- For work where the result carries real consequences, confirm it against an authoritative source.
Frequently Asked Questions
Free to use, no account needed. Calculations run in your browser, so nothing you type is sent to a server. Results are estimates — how we build and check our calculators.