DEV Community

John Butcher
John Butcher

Posted on

I made a little website to convert time to decimal

website screenshot
Hey everyone ๐Ÿ‘‹

So I recently found myself doing a bunch of annoying math converting hours and minutes into decimal format. You know, like when youโ€™re filling out a timesheet or invoicing someone and need to turn 2 hours 45 minutes into 2.75?

Itโ€™s not hard math, but itโ€™s just... annoying. Especially when youโ€™re doing it multiple times a day.

So I made a quick little site:
๐Ÿ‘‰ https://www.timetodecimalcalculator.com

Why I made it
Honestly? Because I was tired of Googling "2 hours 45 minutes to decimal" and clicking on spammy sites with ads everywhere. Most of the tools I found either looked like they were made in 2003 or tried to do way too much.

I just wanted something clean, simple, and fast. So I built one myself.

What it does
Itโ€™s super straightforward:

You enter the hours and minutes

It shows the decimal version instantly

Thatโ€™s it ๐Ÿ˜„

No popups, no distractions, no waiting. Just one job, done well.

Tech stack (nothing fancy)
I kept it really simple:

Nextjs, TailwindCSS

Hosted on Vercel

Loads fast, works on mobile, does its job

No frameworks, no backend โ€” just a quick and functional tool.

A few things I learned
Even with a tiny project like this, I learned a lot:

Simple can be powerful โ€” People appreciate tools that donโ€™t waste their time.

Mobile-first matters โ€” A lot of people use these kinds of tools on their phone.

Build it for yourself first โ€” If it solves your own problem, odds are itโ€™ll help someone else too.

Whatโ€™s next?
Not sure yet! Maybe Iโ€™ll add:

A reverse calculator (decimal to HH:MM)

A "copy to clipboard" button

A little Chrome extension version?

Open to ideas if youโ€™ve got any!

Check it out
Anyway, if you ever need to do quick time-to-decimal conversions (or know someone who does), feel free to try it out:
๐Ÿ‘‰ time to decimal

Let me know what you think โ€” Iโ€™d love feedback, feature requests, or just a โ€œhey this is neatโ€ ๐Ÿ˜Š

Thanks for reading!

Top comments (0)