Skip to main content

A widget to convert decimal to binary, binary to decimal, ASCII to binary

Project description

decitobin 🧒🔢 decitobin is a versatile Python tool that converts between number systems and text — now with a web-style user interface and enhanced features.

Whether you're converting decimal to binary, exploring ASCII encoding, or transforming hexadecimal strings, decitobin offers an interactive and beginner-friendly experience.

🌟 Features 🧠 Support for multiple conversions:

  • |----------------|
  • | Decimal → Binary|
  • | Binary → Decimal |
  • | ASCII → Binary |
  • | Binary → ASCII |
  • | Hex → Binary |
  • | Binary → Hex |
  • | Decimal → Hex |
  • | Hex → Decimal |
  • |-------------| 🖥️ Graphical interface with dropdown selection (Tkinter-based)

🚀 Instant results with detailed formatting

📦 Easy to install and run on any platform

💻 Installation

pip install decitobin

🎮 Launching the App Run the converter using:

python -m decitobin

Or run your own launcher script using:

import decitobin
print(decitobin.dec2bin("12")) # Output: 1100
print(decitobin.ascii2bin("A")) # Output: 01000001
print(decitobin.bin2hex(1011)) # Output: A
print(decitobin.dec2hex(16)) # Output: F

✨ Example Conversions

Input Mode Output
13 Decimal → Binary 1101
1101 Binary → Decimal 13
Hi ASCII → Binary 01001000 01101001
01001000 01101001 Binary → ASCII Hi
F0 Hex → Binary 11110000
11110000 Binary → Hex F0
--------- ------- -------
📄 License
Licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

decitobin-1.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decitobin-1.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file decitobin-1.4.tar.gz.

File metadata

  • Download URL: decitobin-1.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for decitobin-1.4.tar.gz
Algorithm Hash digest
SHA256 16c41e38bfcd6698a5a7ea4ea47419db2b25abfce4d02b0b0d7a245a802102c0
MD5 d0c0ec1300676a0ee9108652b284e84e
BLAKE2b-256 bf45b73f10c3492733dfebc13fe8406cdd3815ff50ba4525f9ec26fc7e17604b

See more details on using hashes here.

File details

Details for the file decitobin-1.4-py3-none-any.whl.

File metadata

  • Download URL: decitobin-1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for decitobin-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd966aec9f4211610838123dc88a7d810735fd3fcf6dac7ea736c282cfe5b43d
MD5 dc96cdd87f1872264cc2e3dbb354eaa7
BLAKE2b-256 047f74268f5e83cae79270547b8870887e5c19256951a418bd898366d4bc4b8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page