All Rounder Tools Blogger-Best blog for blogger: ASCII to Text converter Tool with colorful styling and all its features use any free library...

Thursday, September 26, 2024

ASCII to Text converter Tool with colorful styling and all its features use any free library...

 

ASCII to Text Converter

ASCII to Text Converter

Converted Text:

body { font-family: Arial, sans-serif; background-color: #f0f8ff; color: #333; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: linear-gradient(135deg, #ff7e5f, #feb47b); padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); text-align: center; width: 90%; max-width: 500px; } h1 { margin-bottom: 20px; font-size: 24px; color: #fff; } textarea { width: 100%; height: 100px; padding: 10px; border: none; border-radius: 5px; resize: none; font-size: 16px; } button { background-color: #4CAF50; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; margin-top: 10px; transition: background-color 0.3s; } button:hover { background-color: #45a049; } .result { margin-top: 20px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; background-color: #fff; } h2 { color: #4CAF50; } document.getElementById('convertBtn').addEventListener('click', function() { const asciiInput = document.getElementById('asciiInput').value; const textOutput = document.getElementById('textOutput'); // Split input by commas and convert each ASCII value to character const asciiValues = asciiInput.split(',').map(val => val.trim()); const text = asciiValues.map(val => String.fromCharCode(parseInt(val, 10))).join(''); textOutput.textContent = text || 'Please enter valid ASCII values.'; });

No comments:

Post a Comment