Skip to content

A super easy python tool that converts your text in binary language 8x Bit

License

Notifications You must be signed in to change notification settings

wfxey/binaryconvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BinaryConvert

PyPI - Downloads

A super easy Python tool that converts your text into binary language (8-bit).

Installation

pip install binaryconvert

Example


ToBinary()

from binaryconvert import convert

convert.ToBinary("Hi, my name is wfxey!")

Output

01001000 01100001 01100001 01101100 01100001 01101100 01101100 01100001 01100001 01101111

ToText()

from binaryconvert import convert

convert.ToText("01001000 01100001 01100001 01101100 01100001 01101100 01101100 01100001 01100001 01101111")

Output

Hi, my name is wfxey!

CLI Usage

BinaryConvert also provides a command line interface (CLI) for easy conversion without writing a single line of Python code.

ToBinary Command

Convert normal text to binary (8-bit) using the to_binary command.

python -m binaryconvert to_binary "Hi, my name is wfxey!"

Output

01001000 01101001 00101100 00100000 01101101 01111001 00100000 01101110 01100001 01101101 01100101 00100000 01101001 01110011 00100000 01110111 01100110 01111000 01100101 01111001 00100001

ToText Command

Convert binary (8-bit) to normal text using the to_text command.

python -m binaryconvert to_text "01001000 01101001 00101100 00100000 01101101 01111001 00100000 01101110 01100001 01101101 01100101 00100000 01101001 01110011 00100000 01110111 01100110 01111000 01100101 01111001 00100001"

Output

Hi, my name is wfxey!

About

A super easy python tool that converts your text in binary language 8x Bit

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages