TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I created Units Converter that contains 5000 units across 78 categories

147 pointsby KodyBerns99almost 2 years ago
I have been working on my project for the last one year and developed around 600+ tools. The units converter covers almost every possible unit and I am planning to add more to it.

37 comments

j2kunalmost 2 years ago
People interested in this should check out Frink. It has been around for a while and has thousands of unit conversions with explanations, as well as a web interface for the unit conversions part<p><a href="https:&#x2F;&#x2F;frinklang.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;frinklang.org&#x2F;</a> <a href="https:&#x2F;&#x2F;frinklang.org&#x2F;frinkdata&#x2F;units.txt" rel="nofollow noreferrer">https:&#x2F;&#x2F;frinklang.org&#x2F;frinkdata&#x2F;units.txt</a> <a href="https:&#x2F;&#x2F;frinklang.org&#x2F;fsp&#x2F;frink.fsp" rel="nofollow noreferrer">https:&#x2F;&#x2F;frinklang.org&#x2F;fsp&#x2F;frink.fsp</a>
评论 #36421430 未加载
评论 #36422261 未加载
评论 #36422888 未加载
评论 #36422164 未加载
jzellisalmost 2 years ago
It&#x27;s super cool, but I&#x27;m not sure the explanation of how to calculate Fahrenheit to Kelvin is, uh, accurate. ;-) &lt;3<p>&quot;By using our Fahrenheit to Kelvin conversion tool, you know that one Fahrenheit is equivalent to 255.93 Kelvin. Hence, to convert Fahrenheit to Kelvin, we just need to multiply the number by 255.93. We are going to use very simple Fahrenheit to Kelvin conversion formula for that. Pleas see the calculation example given below.&quot;
评论 #36421063 未加载
评论 #36420994 未加载
评论 #36420944 未加载
bashinatoralmost 2 years ago
What&#x27;s the reason to use this over GNU Units?<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;units&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;units&#x2F;</a>
评论 #36421691 未加载
评论 #36421806 未加载
tobinfrickealmost 2 years ago
I wanted to put in a plug for my employer&#x27;s open-sourced C++ units framework, called Au: <a href="https:&#x2F;&#x2F;github.com&#x2F;aurora-opensource&#x2F;au">https:&#x2F;&#x2F;github.com&#x2F;aurora-opensource&#x2F;au</a><p>The library incorporates dimensional units into the C++ type system with an emphasis on correctness (including considerations for overflow, rounding, loss of precision, etc) and minimal runtime overhead.<p>As a very simple example of what using this library could look like, here is a tiny code snippet taken from one of the tutorials:<p><pre><code> constexpr double speed_mph = 65.0; constexpr double speed_mps = (miles &#x2F; hour)(speed_mph).in(meters &#x2F; second); </code></pre> In a larger program, of course, the whole point is to avoid using naked &quot;doubles&quot; (or floats or ints, etc) at all, and instead use the library&#x27;s &quot;Quantity&quot; types, which encode information about their units. Conversions are done automatically, and incompatible operations become compile-time errors.<p><pre><code> const auto time = hours(1.0) const auto distance = miles(65.0) const auto average_speed = distance&#x2F;time; </code></pre> The tutorials are a nice way to be introduced to the library: <a href="https:&#x2F;&#x2F;aurora-opensource.github.io&#x2F;au&#x2F;tutorial&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;aurora-opensource.github.io&#x2F;au&#x2F;tutorial&#x2F;</a><p>From a user&#x27;s point of view (I am a physicist by training), I find the library wonderfully unobtrusive and &quot;natural&quot; to use.
评论 #36429966 未加载
loufealmost 2 years ago
I got into Qalculate! last year and I haven&#x27;t found any units in my day to day work as an engineer that weren&#x27;t built in. Unit conversion is good but the bundling of it with more of the math equation is the ultimate usability win for me.<p><a href="https:&#x2F;&#x2F;qalculate.github.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;qalculate.github.io&#x2F;</a>
评论 #36423741 未加载
darrylb42almost 2 years ago
It should handle fractions I was trying to get the size of a quarter section. It rounds .25 to 1.
ivorasalmost 2 years ago
Heh, doesn&#x27;t fully support the furlong-firking-forthinght system :(<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;FFF_system" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;FFF_system</a>
评论 #36422286 未加载
评论 #36422498 未加载
dark-staralmost 2 years ago
I randomly picked &quot;Inductance&quot; as category, and the &quot;units&quot; it provides are basically a dozen or so variants of the &quot;Henry&quot;: Attohenry, Gigahenry, Centihenry, Exahenry, Kilohenry, Nanohenry, ....<p>If this is how you get to &quot;5000 units&quot; then that feels a bit cheaty
akisejalmost 2 years ago
Appreciate the effort you put into this. In terms of user flow, I typically need one or two of these use cases at a time. In that case, I just type my conversion into a search engine like Google, and often use their default box.<p>Can you share what types of use cases you&#x27;ve seen people use KodyTools for?
评论 #36422930 未加载
评论 #36420895 未加载
amichalalmost 2 years ago
I didnt look but <a href="http:&#x2F;&#x2F;unitsofmeasure.org" rel="nofollow noreferrer">http:&#x2F;&#x2F;unitsofmeasure.org</a> which is part of the HL7 standard for electronic medical records might be an interesting source&#x2F;reference<p>It has zillions of base units and a algebra syntax for definitions of many more<p>Edit: &quot;common&quot; units <a href="https:&#x2F;&#x2F;github.com&#x2F;ucum-org&#x2F;ucum&#x2F;tree&#x2F;main&#x2F;common-units">https:&#x2F;&#x2F;github.com&#x2F;ucum-org&#x2F;ucum&#x2F;tree&#x2F;main&#x2F;common-units</a>
whartungalmost 2 years ago
Has anyone found a more elegant treatment of calculating with units than the HP calculators?<p>I&#x27;d love to have an HP48 CLI to do unit calcs with.<p><pre><code> .5 * 10_m&#x2F;s^2 * (15_s)^2 = 1125_m </code></pre> Admittedly, the HPs interim results are a bit of a mess:<p><pre><code> sqrt(6.673E-11_N*m^2&#x2F;kg^2 * 5.98E24_kg &#x2F; 6780_km) = 242603.08_N^.5*m&#x2F;(kg^.5*km^.5) </code></pre> But, this converts cleanly to m&#x2F;s: 7671.8m&#x2F;s<p>Everything else I&#x27;ve found have been just super fiddly.
评论 #36425049 未加载
评论 #36425534 未加载
评论 #36423583 未加载
chillbillalmost 2 years ago
Using chat gpt to build software is not good, this is not programming.
myself248almost 2 years ago
Having the units listed alphabetically rather than by size is weird. &quot;Megabits&#x2F;Minute&quot; then &quot;Megabits&#x2F;Nanosecond&quot; then &quot;Megabits&#x2F;Second&quot;... ugh.
评论 #36422551 未加载
PKopalmost 2 years ago
Not a big fan of having social share buttons scattered across middle of workspace, a cleaner less cluttered look is better. Good work though, looks pretty thorough as far as conversions.
评论 #36421965 未加载
bradknowlesalmost 2 years ago
So, the thing about fuel economy is that it is calculated very differently in Europe versus in the US. In Europe, they do liters per 100km, whereas in the US we measure in terms of miles per gallon.<p>So, mi&#x2F;g =&gt; l&#x2F;km requires a different kind of conversion than most of the others shown. You have to first convert mi&#x2F;g to g&#x2F;mi, then you can convert to l&#x2F;km and then multiply by 100.<p>Frankly, I think the European method makes a lot more sense to me, especially as you get to higher and higher levels of efficiency. With mpg, the numbers get stupidly big when you&#x27;re saving relatively small amounts of fuel. With l&#x2F;km, the numbers get smaller and smaller as you increase your efficiency, and it shows you how relatively little you&#x27;re actually increasing the amount of fuel saved.
DylanDmitrialmost 2 years ago
What&#x27;s a reason to use this over Wolfram Alpha?
tzsalmost 2 years ago
It looks quite extensive, and should cover almost all practical cases.<p>The main limitation I see is that it seems you are limited to picking the units to convert between from predefined lists. If someone gave you say a volume specified in nmi ft^2 for instance and you wanted to convert it m^3 you&#x27;d have to do nmi to m and ft^2 to m^2 and then multiply the results to get nmi ft^2 to m^3 because nmi ft^2 is not on the volume unit list.<p>Those cases are probably pretty rare. It is not often that you run in to people who give you say a gasoline consumption rate of 23 picoacres or give you a cookie recipe that calls for 1.6 barn megaparsecs of vanilla. (BTW, those are 0.04 gal&#x2F;mile and 1 tsp, respectively).
评论 #36426522 未加载
dTalalmost 2 years ago
People always mention Frink and GNU Units, but the workhorse of desktop unit-aware calculation is, in my opinion, Qalculate. In addition to being a capable scientific calculator in its own right, its killer feature is the ability to throw &#x27;x&#x27; anywhere into an equality, and it will solve for &#x27;x&#x27;. AS well as making to&#x2F;from unit conversion even easier this also often saves you having to rewrite physics equations to isolate the quantity of interest (and thus potentially screwing up factors when eg converting mm^2 to m^2). The composition of units + symbolic calculator is greater than the sum of its parts.
6510almost 2 years ago
Good work. Perhaps you can steal this idea:<p>Metric intervention <a href="https:&#x2F;&#x2F;userscripts-mirror.org&#x2F;scripts&#x2F;show&#x2F;130277" rel="nofollow noreferrer">https:&#x2F;&#x2F;userscripts-mirror.org&#x2F;scripts&#x2F;show&#x2F;130277</a> &gt; Converting that old French system the Brits are still using to the metric standard of science. ~ foot, inch (00&#x27;,00&quot;,00&#x27;00,00&#x27;00&quot;), yard, mile, stone, Pound-mass&#x2F;Lbs., Gallon ~ It will totally convert something heretical like: 1&#x27;23 1&#x2F;4&quot; x 2&#x27;12 5&#x2F;8&quot; into something elegant and civilized like 89.535 cm x 93.0275 cm<p>This (uhm) didn&#x27;t take a year to make but it was rather useful when I needed it.
BenjiWiebealmost 2 years ago
You could maybe use the &#x27;units&#x27; command line program&#x27;s database of conversions.
jedbergalmost 2 years ago
The first thing I looked for was football fields, but couldn&#x27;t find it. :)
评论 #36421408 未加载
评论 #36420832 未加载
评论 #36421398 未加载
ocrowalmost 2 years ago
You could add GeV&#x2F;c2 (giga-electronvolts per speed of light squared) as a unit of weight that is used by physicists for sub-atomic particle mass.
评论 #36421629 未加载
评论 #36421352 未加载
nandalismalmost 2 years ago
There is also the [units] command from UNIX. I think the original was by Ken Thompson (AFAICR).<p><a href="https:&#x2F;&#x2F;www.unix.com&#x2F;man-page&#x2F;v7&#x2F;1&#x2F;units&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.unix.com&#x2F;man-page&#x2F;v7&#x2F;1&#x2F;units&#x2F;</a><p>$ units You have: 1 foot candle You want: lumens meter * 0.310896 &#x2F; 3.2165097
askiiartalmost 2 years ago
Good to see the completely realistic terabytes&#x2F;nanosecond is included!<p>I&#x27;m sure messing around with that will never get old.
评论 #36422030 未加载
评论 #36420936 未加载
Someonealmost 2 years ago
I cannot find a button to switch the “from” and “to” units.<p>IMO, any converter needs one, so add it or make it easier to find.
评论 #36420917 未加载
评论 #36420814 未加载
accrualalmost 2 years ago
I have used your site before for conversion and appreciated having everything in one place. Thanks!
评论 #36420921 未加载
prabhatsharmaalmost 2 years ago
I think this is a great tool. Not discounting the value of work (which you started long ago) that you have done already, but I am thinking that an LLM could do it much more easily today.
nebula8804almost 2 years ago
Two notes: When I search for oz and ml nothing comes up. Also there should be a button to swap units like you have on xe.com (ability to swap currencies).<p>Many cooking utensils I have at home are either in ml or oz but not both.
wombatpmalmost 2 years ago
As a chemical engineer, we would joke about using the worst units in problems. Had a professor specify a volumetric rate in hogsheads per fortnight for a problem once and density in stone per cubic rods
评论 #36426795 未加载
irrationalalmost 2 years ago
TIL that there are Tablespoons [Metric].<p>Also, I thought &quot;Library of Congress&quot; was a standard unit of measurement? Not to mention the &quot;standard reference pear&quot;.
评论 #36424702 未加载
评论 #36421295 未加载
annoyingnoobalmost 2 years ago
Looks like the site is currently blocked by Quad9 DNS.<p>&gt; www.kodytools.com Server: dns9.quad9.net Address: 9.9.9.9<p>** dns9.quad9.net can&#x27;t find www.kodytools.com: Non-existent domain
jonathanbergeralmost 2 years ago
Cool site! You might consider deleting the cookie notice?<p>I run a similar site (dateful.com) and I promise the EU regulators don&#x27;t come after sites like ours. :)
huhtenbergalmost 2 years ago
What kind of a toy converter is this? Doesn&#x27;t have even the most basic units, like Delisle temp scale. Bah, shame.
jandresealmost 2 years ago
Ooh, this should be very useful when reading article written by American journalists.
评论 #36421779 未加载
ac2023almost 2 years ago
Kilogram is a unit of mass, not weight. Just an FYI.
moralestapiaalmost 2 years ago
Small typo!<p>Molar Concenration -&gt; Molar Concen(t)ration
评论 #36444405 未加载
imdsmalmost 2 years ago
Someone tell Randall Munroe