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

Uploaded Python 3

File details

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

File metadata

  • Download URL: decitobin-1.3.1.tar.gz
  • Upload date:
  • Size: 3.8 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.1.tar.gz
Algorithm Hash digest
SHA256 ebda0b0a26c5ce2e6ba861bae1814953c951821b45a2ef8f63fb5d9c50537811
MD5 4ad8690d0c5ad9982b7f8758bd0a88b9
BLAKE2b-256 10092904036fe6ef6ce3f9c0c3eff3388a8a0bf43b066903fd3e4c19264461e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decitobin-1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba020f18b0a49ef64e0a079aa6bd8761825711439106642a2c2e5dcd0be901ee
MD5 b3396f77caf716365fb170822f025994
BLAKE2b-256 d2135dbd2f02fbb42d861e830e1abbf548dae75e621d4e6c95407040705bb8ce

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