Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASCII Text to Binary Converter #643

Closed
cschwarck opened this issue Sep 21, 2023 · 2 comments · Fixed by #669
Closed

ASCII Text to Binary Converter #643

cschwarck opened this issue Sep 21, 2023 · 2 comments · Fixed by #669
Assignees
Labels

Comments

@cschwarck
Copy link

Feature request:
I often find myself needing to convert text to its binary representation for various reasons (e.g., debugging, encoding analysis, educational purposes). It would be immensely useful to have this feature directly in your app, eliminating the need for third-party tools or manual conversions.

Describe the solution you'd like
I propose the addition of a "Text to Binary" converter feature in your app. The functionality could look something like this:

A user inputs a string of text.
The app provides the binary representation of each character in the input string.
The binary output is displayed either inline or in a separate output area.

Describe alternatives you've considered
There are some standalone online tools and libraries that offer this service, but having it integrated into your app would streamline the process and reduce the dependency on external resources.

Additional context
This feature would not only benefit users like me but could also be a valuable educational tool for those learning about binary encoding or computer science concepts. It would set your app apart as a multifunctional tool catering to a wider audience.

Is their example of this tool in the wild?
Example: https://www.convertbinary.com/text-to-binary/

Additional context
Text to Morse Code would be fun to have too!

Thank you for considering this feature request. I believe it would be a valuable addition and I'm excited to see the future developments of your app!

@martygo
Copy link

martygo commented Oct 15, 2023

Hi! Here a function in vanilla JS to convert ASCII Text to Binary:

``function textToBinary(text) {
return text.split('').map(function (char) {
return char.charCodeAt(0).toString(2);
}).join(' ');
}

let binary = textToBinary("Hello, World!");
console.log(binary);

@CorentinTh
Copy link
Owner

Hi @cschwarck
Thank you for the suggestion, it's live : https://it-tools.tech/text-to-binary

screely-1697410450288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants