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.2.tar.gz (3.9 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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decitobin-1.3.2.tar.gz
  • Upload date:
  • Size: 3.9 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.2.tar.gz
Algorithm Hash digest
SHA256 ad0a47e32d3a2b27750d453a95f30e13e4778960de25ff65618b21583fb396aa
MD5 6e36cae250d072d0a2c933a0ee4da66e
BLAKE2b-256 3d91381012521de0b46987389ce2fc523e37f2c68df188b299fe6572091fc471

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decitobin-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c86a5cffce8bd7602e38ff497333d3f22943ee6bcacde083d84fc7abcfe899d3
MD5 b9070d5f070c9c4bb95ed6096576d448
BLAKE2b-256 bb77f431b6e50e616842fdf0b76e69c764013965ed5830562c890760a761d140

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