Skip to content

Repository files navigation

Binary to Decimal Converter

A simple and elegant web application that converts binary and hexadecimal numbers to decimal numbers in real-time. Built with Next.js, TypeScript, PostgreSQL, Drizzle ORM, and styled with Tailwind CSS and shadcn/ui components.

Description

This app provides a user-friendly interface for converting binary numbers (base 2) and hexadecimal numbers (base 16) to decimal numbers (base 10). Simply enter a binary or hexadecimal number, and the decimal equivalent will be displayed instantly. The app includes input validation and allows you to save your conversions for later reference.

Features

  • Real-time conversion: See decimal results as you type
  • Dual input modes: Convert from binary or hexadecimal numbers
  • Input validation: Only accepts valid binary digits (0s and 1s) or hexadecimal digits (0-9, A-F)
  • Error handling: Clear error messages for invalid input
  • Save searches: Save your conversions to the database
  • Conversions history: View and reload your previously saved conversions
  • Modern UI: Beautiful pastel color palette with shadcn/ui components
  • Responsive design: Works seamlessly on all screen sizes
  • Dark mode support: Automatic theme support

Tech Stack

  • Framework: Next.js 16 with React 19
  • Language: TypeScript
  • Database: PostgreSQL with Drizzle ORM
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui

About

Web app that converts binary and hexadecimal numbers to decimal in real-time, with conversion history saved to a PostgreSQL database.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages