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 |
  • |-------------| 🖥️ 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(dec2bin("12")) # Output: 1100
print(asciitobin("A")) # Output: 01000001
print(bin2hex(1011)) # Output: A
print(bin2ascii(01000010)) # Output: B

✨ 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.3.4.tar.gz (4.0 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.3.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for decitobin-1.3.4.tar.gz
Algorithm Hash digest
SHA256 6562f85a7bfed107bd834ec1cc4aa21db76c50ba045855eecd00e89beb1959de
MD5 243c0602cc22b9cf732109d56d10f4bc
BLAKE2b-256 5b9f70ddc3d2908dc1cb54c065f7ee5466d89277a57b73bd66a90b40dc4adc54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decitobin-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88fbc94ce84ecb440839222c0c7c7b67f311770679743b0b9d54816a5fe6aafe
MD5 a9795108a616ad00cc81e98b5807d72f
BLAKE2b-256 24ae8b4724819140a8f8fa10413415250a53f7e89518c8edbddfe31ae20e2617

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