-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencoding-converter.html
More file actions
100 lines (99 loc) · 10.4 KB
/
encoding-converter.html
File metadata and controls
100 lines (99 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Free Encoding Converter — UTF-8, ASCII, Punycode</title>
<meta name="description" content="Convert between text encodings: UTF-8, ASCII, Latin-1, Punycode, and more. Analyze character bytes and code points. Free online encoding converter.">
<link rel="canonical" href="https://www.quicktools.mom/encoding-converter.html">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.quicktools.mom/encoding-converter.html">
<meta name="twitter:card" content="summary">
<link rel="stylesheet" href="style.css">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2658921743607446" crossorigin="anonymous"></script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Is Encoding Converter free to use?","acceptedAnswer":{"@type":"Answer","text":"Yes! Encoding Converter is completely free with no signup required. It runs entirely in your browser — your data never leaves your device."}},{"@type":"Question","name":"How do I use Encoding Converter?","acceptedAnswer":{"@type":"Answer","text":"Simply enter your values in the input fields above and the results update instantly. No button clicks needed — everything calculates in real-time."}},{"@type":"Question","name":"Is my data safe with Encoding Converter?","acceptedAnswer":{"@type":"Answer","text":"Absolutely. Encoding Converter runs 100% client-side in your browser using JavaScript. No data is uploaded, stored, or shared with any server. Your privacy is guaranteed."}}]}</script>
</head>
<body>
<div class="page-wrapper">
<header class="site-header"><a href="index.html" class="site-logo"><span class="icon">⚡</span> QuickTools</a><nav class="site-nav"><a href="index.html">All Tools</a></nav></header>
<div class="ad-zone ad-zone-top">Ad Space — 728×90</div>
<div class="tool-header"><div class="tool-badge">🔤 Encoding</div><h1>Encoding Converter</h1><p>Analyze Unicode code points, UTF-8 byte sequences, and convert between encodings.</p></div>
<div class="tool-card">
<label>Input Text</label>
<textarea id="input" rows="3" oninput="analyze()" style="font-size:1.1rem;">Hello 世界 🌍 Ñoño</textarea>
</div>
<div class="tool-card">
<h3 style="font-size:0.95rem;margin-bottom:1rem;">📊 Character Analysis</h3>
<div id="charTable" style="overflow-x:auto;max-height:400px;overflow-y:auto;"></div>
</div>
<div class="tool-card">
<h3 style="font-size:0.95rem;margin-bottom:1rem;">🔄 Encoded Forms</h3>
<div style="display:grid;gap:0.75rem;">
<div><label class="text-muted" style="font-size:0.8rem;">UTF-8 Hex Bytes</label><div id="utf8hex" class="mono" style="padding:0.5rem;background:var(--bg-secondary);border-radius:6px;font-size:0.85rem;word-break:break-all;"></div></div>
<div><label class="text-muted" style="font-size:0.8rem;">Unicode Code Points</label><div id="codepoints" class="mono" style="padding:0.5rem;background:var(--bg-secondary);border-radius:6px;font-size:0.85rem;word-break:break-all;"></div></div>
<div><label class="text-muted" style="font-size:0.8rem;">HTML Entities (Decimal)</label><div id="htmlDec" class="mono" style="padding:0.5rem;background:var(--bg-secondary);border-radius:6px;font-size:0.85rem;word-break:break-all;"></div></div>
<div><label class="text-muted" style="font-size:0.8rem;">HTML Entities (Hex)</label><div id="htmlHex" class="mono" style="padding:0.5rem;background:var(--bg-secondary);border-radius:6px;font-size:0.85rem;word-break:break-all;"></div></div>
<div><label class="text-muted" style="font-size:0.8rem;">URL Encoded (UTF-8)</label><div id="urlenc" class="mono" style="padding:0.5rem;background:var(--bg-secondary);border-radius:6px;font-size:0.85rem;word-break:break-all;"></div></div>
</div>
</div>
<div class="tool-card">
<div class="stats-bar">
<div class="stat-item"><span class="stat-value" id="charCount">0</span><span class="stat-label">Characters</span></div>
<div class="stat-item"><span class="stat-value" id="byteCount">0</span><span class="stat-label">UTF-8 Bytes</span></div>
<div class="stat-item"><span class="stat-value" id="asciiCount">0</span><span class="stat-label">ASCII</span></div>
<div class="stat-item"><span class="stat-value" id="nonAscii">0</span><span class="stat-label">Non-ASCII</span></div>
</div>
</div>
<div class="ad-zone">Ad Space — 336×280</div>
<div class="related-tools"><h2>Related Tools</h2><div class="related-grid"><a href="url-encoder.html"><span class="tool-icon">🔗</span> URL Encoder</a><a href="base64.html"><span class="tool-icon">🔄</span> Base64</a><a href="html-entities.html"><span class="tool-icon">🌐</span> HTML Entities</a><a href="character-map.html"><span class="tool-icon">🔤</span> Character Map</a></div></div>
<div class="tool-card" style="max-width:720px;">
<h2 style="font-size:1rem;margin-bottom:0.75rem;">📖 About Encoding Converter</h2>
<p style="font-size:0.85rem;line-height:1.7;color:var(--text-muted);margin-bottom:0.75rem;">Encoding Converter is a free, browser-based tool designed for students, professionals, and anyone who needs quick calculations. Convert between text encodings: UTF-8, ASCII, Latin-1, Punycode, and more. Analyze character bytes and code points. Free online encoding converter. Everything runs locally in your browser using JavaScript — no data is ever sent to a server, making it completely private and secure. The tool is designed to be intuitive and beginner-friendly while still offering advanced features for power users. It loads instantly with no installation required and works offline once loaded. Use it as often as you need — there are no daily limits, no watermarks, and no hidden fees.</p>
<h3 style="font-size:0.9rem;margin-bottom:0.5rem;">How to Use</h3>
<ol style="font-size:0.85rem;color:var(--text-muted);line-height:1.7;padding-left:1.2rem;">
<li>Enter or paste your data in the input area above.</li>
<li>Adjust settings and options to match your needs.</li>
<li>View the results instantly — they update in real-time.</li>
<li>Copy, download, or share your output with one click.</li>
</ol>
</div>
<div class="tool-card faq-section">
<h2 style="font-size:1.1rem;margin-bottom:1rem;">❓ Frequently Asked Questions</h2>
<details style="margin-bottom:0.75rem;border-bottom:1px solid var(--border);padding-bottom:0.75rem;"><summary style="font-weight:600;cursor:pointer;font-size:0.9rem;">Is Encoding Converter free to use?</summary><p style="margin-top:0.5rem;font-size:0.85rem;color:var(--text-muted);line-height:1.6;">Yes! Encoding Converter is completely free with no signup required. It runs entirely in your browser — your data never leaves your device.</p></details>
<details style="margin-bottom:0.75rem;border-bottom:1px solid var(--border);padding-bottom:0.75rem;"><summary style="font-weight:600;cursor:pointer;font-size:0.9rem;">How do I use Encoding Converter?</summary><p style="margin-top:0.5rem;font-size:0.85rem;color:var(--text-muted);line-height:1.6;">Simply enter your values in the input fields above and the results update instantly. No button clicks needed — everything calculates in real-time.</p></details>
<details style="margin-bottom:0.75rem;border-bottom:1px solid var(--border);padding-bottom:0.75rem;"><summary style="font-weight:600;cursor:pointer;font-size:0.9rem;">Is my data safe with Encoding Converter?</summary><p style="margin-top:0.5rem;font-size:0.85rem;color:var(--text-muted);line-height:1.6;">Absolutely. Encoding Converter runs 100% client-side in your browser using JavaScript. No data is uploaded, stored, or shared with any server. Your privacy is guaranteed.</p></details>
</div>
<div class="ad-zone ad-zone-bottom">Ad Space — 728×90</div>
<footer class="site-footer"><p>© 2026 QuickTools.</p><div class="footer-links"><a href="index.html">All Tools</a><a href="#">Privacy</a></div></footer>
</div>
<script>
function analyze(){
const text=document.getElementById('input').value;
const chars=[...text];const enc=new TextEncoder();const bytes=enc.encode(text);
let ascii=0,nonAscii=0;
let tableHTML='<table style="width:100%;border-collapse:collapse;font-size:0.8rem;"><thead><tr style="border-bottom:2px solid var(--border);"><th style="padding:4px;text-align:left;">Char</th><th>Code Point</th><th>UTF-8 Bytes</th><th>Category</th><th>Name</th></tr></thead><tbody>';
chars.forEach(ch=>{
const cp=ch.codePointAt(0);const isAscii=cp<128;isAscii?ascii++:nonAscii++;
const charBytes=enc.encode(ch);const hexBytes=[...charBytes].map(b=>'0x'+b.toString(16).toUpperCase().padStart(2,'0')).join(' ');
const cat=cp<32?'Control':cp<128?'ASCII':cp<256?'Latin-1':cp<0x10000?'BMP':'Supplementary';
tableHTML+=`<tr style="border-bottom:1px solid var(--border);"><td style="padding:4px;font-size:1.2rem;">${ch}</td><td class="mono">U+${cp.toString(16).toUpperCase().padStart(4,'0')}</td><td class="mono">${hexBytes}</td><td>${cat}</td><td style="font-size:0.75rem;">${charBytes.length} byte${charBytes.length>1?'s':''}</td></tr>`;
});
tableHTML+='</tbody></table>';
document.getElementById('charTable').innerHTML=tableHTML;
document.getElementById('utf8hex').textContent=[...bytes].map(b=>b.toString(16).toUpperCase().padStart(2,'0')).join(' ');
document.getElementById('codepoints').textContent=chars.map(c=>'U+'+c.codePointAt(0).toString(16).toUpperCase().padStart(4,'0')).join(' ');
document.getElementById('htmlDec').textContent=chars.map(c=>'&#'+c.codePointAt(0)+';').join('');
document.getElementById('htmlHex').textContent=chars.map(c=>'&#x'+c.codePointAt(0).toString(16).toUpperCase()+';').join('');
document.getElementById('urlenc').textContent=encodeURIComponent(text);
document.getElementById('charCount').textContent=chars.length;
document.getElementById('byteCount').textContent=bytes.length;
document.getElementById('asciiCount').textContent=ascii;
document.getElementById('nonAscii').textContent=nonAscii;
}
analyze();
</script>
<script src="ads.js"></script>
</body>
</html>