Epoch Converter
Convert Unix epoch seconds to calendar dates and back. Simple epoch converter for logs, databases, and APIs-free, fast, and private in your browser.
How to Use
- To decode: enter epoch seconds in the first field.
- Click Epoch -> Date to view the corresponding date-time.
- To encode: set the date-time picker to your target instant.
- Click Date -> Epoch to generate Unix seconds.
- Copy the value into SQL, config files, or chat.
Input Field Guide
- Epoch seconds
- Whole seconds since 1970-01-01 00:00:00 UTC. Typical ten-digit log values.
- Date
- Local date-time interpreted by your browser for reverse conversion to seconds.
Understanding Your Results
Epoch -> Date shows the local wall-clock interpretation of the UTC instant. Date -> Epoch prints integer seconds suitable for second-precision databases and APIs. Results are labeled by direction so you do not paste a date where seconds belong.
Features
- Seconds-only epoch focus
- Bidirectional Epoch ↔ Date buttons
- Integer second output
- Clean two-field layout
- Copy support
- Local processing
Formula & Calculation Logic
seconds = floor((Date.UTC components) / 1000); date = new Date(seconds * 1000) displayed in local timezone.
Real-World Use Cases
- SQL epoch column debugging
- Legacy UNIX log correlation
- API contract tests with second precision
- Teaching POSIX time basics
- Quick checks without CLI date
Practical Examples
1700000000 -> local datetime equivalent of that UTC instant.
Pick 1 Jul 2026 noon local -> integer seconds for that instant.
Benefits
- Less UI noise when milliseconds never apply
- Clear directional buttons
- Private for production timestamps
- No install
Tips & Best Practices
- Use unix-timestamp-converter when sources use milliseconds.
- Remember local picker vs UTC when matching server Zulu logs.
- Round-trip encode-decode to verify understanding.
Common Mistakes to Avoid
- Feeding 13-digit millisecond values into the seconds field.
- Expecting UTC labeled output-pair with unix tool for UTC line.
- Confusing epoch seconds with JavaScript getTime() milliseconds.
Frequently Asked Questions
What is Unix epoch time?
Second count since 1 Jan 1970 00:00:00 UTC in common software systems.
Does epoch converter support milliseconds?
No. Use unix-timestamp-converter for millisecond values.
Which timezone is used displaying dates?
Your browser local zone interprets the instant for display.
Can I convert dates before 1970?
Yes within the range supported by JavaScript Date.
How is this different from unix-timestamp-converter?
Epoch converter is seconds-only with a simpler two-field layout.
Is output always an integer?
Yes. Epoch seconds are whole numbers.
Does it modify my system clock?
No. It only converts values you enter.
Are epoch values uploaded?
No. Conversion runs locally.