All Rounder Tools Blogger-Best blog for blogger

Saturday, October 12, 2024

JSON Viewer Tool with colorful styling and all its features use any free library..

 

JSON Viewer Tool

JSON Viewer Tool

body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; } .container { max-width: 800px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; } textarea { width: 100%; height: 200px; margin-bottom: 10px; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: monospace; } button { display: block; width: 100%; padding: 10px; background-color: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #218838; } .json-output { margin-top: 20px; padding: 10px; border: 1px solid #ccc; border-radius: 4px; background: #f9f9f9; max-height: 400px; overflow-y: auto; white-space: pre-wrap; } document.getElementById('loadJson').addEventListener('click', function() { const jsonInput = document.getElementById('jsonInput').value; let jsonData; try { jsonData = JSON.parse(jsonInput); displayJson(jsonData); } catch (error) { alert('Invalid JSON: ' + error.message); document.getElementById('jsonOutput').innerHTML = ''; } }); function displayJson(data) { const output = document.getElementById('jsonOutput'); output.innerHTML = ''; output.appendChild(createTree(data)); hljs.highlightBlock(output); } function createTree(data) { const container = document.createElement('div'); if (typeof data === 'object' && data !== null) { const list = document.createElement('ul'); for (const key in data) { const listItem = document.createElement('li'); const keyElement = document.createElement('span'); keyElement.className = 'key'; keyElement.textContent = key + ': '; listItem.appendChild(keyElement); if (typeof data[key] === 'object' && data[key] !== null) { const childContainer = createTree(data[key]); childContainer.style.display = 'none'; listItem.appendChild(childContainer); keyElement.addEventListener('click', () => { const isVisible = childContainer.style.display === 'block'; childContainer.style.display = isVisible ? 'none' : 'block'; }); } else { const valueElement = document.createElement('span'); valueElement.className = 'value'; valueElement.textContent = JSON.stringify(data[key]); listItem.appendChild(valueElement); } list.appendChild(listItem); } container.appendChild(list); } else { container.textContent = JSON.stringify(data); } return container; }

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

 

Decimal to Text Converter

Decimal to Text Converter

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #84fab0, #8fd3f4); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 20px; text-align: center; max-width: 400px; width: 100%; } h1 { margin-bottom: 20px; color: #4a4a4a; } input { width: 100%; padding: 10px; margin-bottom: 10px; border: 2px solid #84fab0; border-radius: 5px; font-size: 16px; } button { padding: 10px 15px; border: none; border-radius: 5px; background-color: #8fd3f4; color: white; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #84fab0; } h2 { margin-top: 20px; color: #4a4a4a; } document.getElementById('convertButton').addEventListener('click', function() { const decimalInput = document.getElementById('decimalInput').value; const resultElement = document.getElementById('result'); // Check if input is a valid number if (isNaN(decimalInput) || decimalInput.trim() === '') { resultElement.innerText = 'Please enter a valid decimal number.'; return; } const decimalNumber = parseFloat(decimalInput); resultElement.innerText = convertDecimalToText(decimalNumber); }); function convertDecimalToText(decimal) { if (decimal < 0) return 'Negative numbers are not supported.'; const ones = [ '', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen' ]; const tens = [ '', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety' ]; if (decimal < 20) return ones[Math.floor(decimal)]; if (decimal < 100) { const tenPart = Math.floor(decimal / 10); const onePart = decimal % 10; return tens[tenPart] + (onePart ? '-' + ones[onePart] : ''); } if (decimal < 1000) { const hundredPart = Math.floor(decimal / 100); const rest = decimal % 100; return ones[hundredPart] + ' hundred' + (rest ? ' and ' + convertDecimalToText(rest) : ''); } return 'Numbers larger than 999 are not supported.'; }

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

 

Text to Decimal Converter

Text to Decimal Converter

Decimal Output:


    
body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f9f9f9, #e0e0e0); color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: 0 auto; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 20px; } h1 { text-align: center; color: #4A90E2; } textarea { width: 100%; height: 150px; border: 2px solid #4A90E2; border-radius: 5px; padding: 10px; font-size: 16px; resize: none; } textarea:focus { border-color: #007BFF; outline: none; } button { display: block; width: 100%; padding: 10px; margin: 20px 0; background-color: #4A90E2; border: none; border-radius: 5px; color: white; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #007BFF; } h2 { color: #333; } pre { background-color: #f4f4f4; padding: 10px; border-radius: 5px; white-space: pre-wrap; word-wrap: break-word; } document.getElementById('convertButton').addEventListener('click', function() { const textInput = document.getElementById('textInput').value; const decimalOutput = convertTextToDecimal(textInput); document.getElementById('decimalOutput').textContent = decimalOutput; }); function convertTextToDecimal(text) { return text.split('').map(char => char.charCodeAt(0)).join(' '); }

Friday, October 4, 2024

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

 

HEX to Text Converter

HEX to Text Converter

body { background-color: #f8f9fa; } .card { border: 1px solid #007bff; } .card-body { background-color: #e9ecef; border-radius: 5px; } h1 { color: #007bff; } .btn-primary { background-color: #007bff; border-color: #007bff; } textarea { background-color: #ffffff; border: 1px solid #ced4da; } document.getElementById('convertBtn').addEventListener('click', function() { const hexInput = document.getElementById('hexInput').value; const textOutput = document.getElementById('textOutput'); if (hexInput.match(/^[0-9A-Fa-f]+$/) && hexInput.length % 2 === 0) { textOutput.value = hexToText(hexInput); } else { textOutput.value = 'Invalid HEX input. Please enter a valid even-length HEX string.'; } }); function hexToText(hex) { let text = ''; for (let i = 0; i < hex.length; i += 2) { text += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); } return text; }

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

 

Text to HEX Converter

Text to HEX Converter

HEX Output:

* { box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f0f4f8; margin: 0; padding: 20px; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background: white; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); padding: 20px; width: 400px; } h1 { color: #3498db; text-align: center; } textarea { width: 100%; height: 100px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; } button { width: 100%; padding: 10px; background-color: #3498db; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #2980b9; } .output { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9; font-family: monospace; word-wrap: break-word; } document.getElementById('convertButton').addEventListener('click', function() { const inputText = document.getElementById('inputText').value; const hexOutput = document.getElementById('hexOutput'); if (inputText.trim() === "") { hexOutput.textContent = "Please enter some text to convert."; return; } // Convert each character to HEX let hexString = ''; for (let i = 0; i < inputText.length; i++) { hexString += inputText.charCodeAt(i).toString(16).padStart(2, '0') + ' '; } hexOutput.textContent = hexString.trim(); });

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

 

Octal to Text Converter

Octal to Text Converter

Converted Text:

body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #f1c40f, #e67e22); color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { background: white; border-radius: 10px; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); width: 90%; max-width: 500px; text-align: center; } h1 { color: #2980b9; } textarea { width: 100%; height: 100px; border: 2px solid #2980b9; border-radius: 5px; padding: 10px; margin-bottom: 10px; font-size: 16px; resize: none; } textarea:focus { border-color: #3498db; outline: none; } button { background-color: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } button:hover { background-color: #219150; } #resultContainer { margin-top: 20px; background: #ecf0f1; padding: 15px; border-radius: 5px; display: none; /* Initially hidden */ } #resultText { font-size: 18px; color: #2980b9; } document.getElementById('convertButton').addEventListener('click', function() { const octalInput = document.getElementById('octalInput').value; const octalArray = octalInput.split(/\s+/); // Split by whitespace let result = ''; for (let octal of octalArray) { const decimal = parseInt(octal, 8); // Convert from octal to decimal if (!isNaN(decimal)) { result += String.fromCharCode(decimal); // Convert from decimal to character } else { result += '?'; // Placeholder for invalid octal } } const resultContainer = document.getElementById('resultContainer'); const resultText = document.getElementById('resultText'); resultText.textContent = result; resultContainer.style.display = 'block'; // Show result container });

Thursday, October 3, 2024

Octal converter Tool with colorful styling and all its features use any free library

 

Text to Octal Converter

Text to Octal Converter

Octal Output

body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 20px; } .container { max-width: 600px; margin: auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #4a4e69; } textarea { width: 100%; height: 100px; margin: 10px 0; padding: 10px; border: 2px solid #4a4e69; border-radius: 5px; resize: none; font-size: 16px; } button { background-color: #9a8c98; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 16px; width: 100%; } button:hover { background-color: #c9ada7; } h2 { color: #4a4e69; } document.getElementById('convertButton').addEventListener('click', function() { const inputText = document.getElementById('inputText').value; const octalOutput = textToOctal(inputText); document.getElementById('outputText').value = octalOutput; }); function textToOctal(text) { return text.split('').map(char => char.charCodeAt(0).toString(8)).join(' '); }

Line Graph Maker Tool with colorful styling and all its features use any free library

  Line Graph Maker Tool Line Graph Maker Tool Labels (comma-separated): Data Po...