
A lightweight web app that converts between common length, volume, mass, temperature, and digital storage units in real-time.
Preview UI • Usage • FAQ • Contact
The Unit Conversion Tool is a single-page site intended for students, travelers, and makers who need quick conversions without hunting for multiple calculators. The UI focuses on clarity: choose a category, enter a value, and instantly see the converted results for the most common unit pairings. Everything is handled client-side so it works offline once loaded.
Client
Tooling
- Instant conversions for length, temperature, volume, mass, and digital storage.
- Category-aware unit lists that prevent invalid combinations.
- Responsive layout that adapts from phones to large screens.
- Offline-friendly: pure client-side logic without dependencies.
- Copy-to-clipboard shortcut for quickly sharing results (planned).
Color | Hex |
---|---|
Ink Plum | #2D232E |
Slate Accent | #474448 |
Warm Canvas | #E0DDCF |
Deep Mauve | #534B52 |
Soft Ivory | #F1F0EA |
This project does not require environment variables. Everything runs directly in the browser.
Follow the steps below to run a local copy of the project.
- A modern web browser (Chrome, Firefox, Safari, or Edge).
- (Optional) A local web server such as
Live Server
for hot reloading during development.
Download or clone the repository:
git clone https://github.com/Calen-Ray/unit-conversion-tool
Move into the project directory:
cd unit-conversion-app/unit-conversion-tool
If you prefer serving over HTTP, start your favorite static server (example using npx
):
npx serve .
Tests are not yet in place. Contributions with unit or end-to-end tests are welcome.
Open the project in your browser:
# Windows
start main.html
# macOS
open main.html
# Linux
xdg-open main.html
Or, if you prefer a local dev server with auto reload and have live-server
installed:
npx live-server .
Any static host works (Netlify, GitHub Pages, Vercel). Upload the contents of unit-conversion-tool
or point your hosting provider at the directory root.
- Choose a category (e.g., Temperature).
- Enter the value you want to convert.
- Pick the source and destination units from the dropdowns.
- Review the converted result instantly below the form.
- Use the "Reset" action to clear the current conversion and start fresh.
- Static layout and responsive styling.
- Conversion logic for length, volume, mass, temperature, and storage units.
- Add copy-to-clipboard button for converted values.
- Persist most recent conversions with
localStorage
. - Add keyboard shortcuts for faster navigation.
Contributions are always welcome! To get started:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add your feature'
). - Push the branch (
git push origin feature/your-feature
). - Open a Pull Request describing the motivation and screenshots if relevant.
Please read the Code of Conduct before contributing.
-
Will currency conversion be supported?
Currency conversion relies on live exchange rates, so it is out of scope for this static tool.
-
Can I add custom units?
Sure, submit a pull request for your desired changes or submit a feature request if you need assistance.
Distributed under the MIT License. See LICENSE
for more information.
Calen - @calen_dev
Project Link: https://github.com/Calen-Ray/unit-conversion-tool
Useful references while assembling this project:
- Shields.io for custom badges.
- MDN Web Docs for HTML, CSS, and JavaScript guidance.
- Emoji Cheat Sheet for accessible emoji codes.
- Awesome README for structural inspiration.