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.3.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.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decitobin-1.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e6ad76321ccf740c0e7b4bb3cf8fdb12b8ad32e31a40d9568a009ee7914eb5cc
MD5 d0d520bd09d2b0690bfac36fde46a65d
BLAKE2b-256 aea54909a03f018cbb0d7af5969a6de50e6f8691d6dbcd1de0aea2a9bb6aa092

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decitobin-1.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff6c51d90036a91c970cf2eab6fc435a7a42a653e54a10859f7d4993877b249
MD5 6aa4f3c0205b2e9493fad0d38f4a16af
BLAKE2b-256 f97dc86489b5c3e43a72e2a621b395dedbd3f70a33c3b0e0b182f54c24156f00

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