> encode | decode | hex <
// ترميز Base16 لتمثيل البيانات الثنائية المدمج
Easy to Use
Simple interface for instant Base16 encoding and decoding. No technical knowledge required.
Local Processing
All conversions happen in your browser. Your data never leaves your device.
Instant Results
Real-time conversion with no delays. Perfect for debugging and development.
// حول ترميز BASE16
كيف يعمل Base16:
Base16 (السادس عشري) يستخدم 16 حرفاً (0-9، A-F) لتمثيل البيانات. كل بايت يتم تمثيله بحرفين سادس عشريين، مما يجعله مناسباً لتمثيل البيانات الثنائية.
مثال:
"مرحبا" → 4865726C6C6F
لماذا استخدم Base16:
- >تمثيل مدمج للبيانات الثنائية
- >يستخدم على نطاق واسع في البرمجة
- >سهل القراءة والفهم
- >مثالي لعرض القيم الثنائية
- >متوافق مع أنظمة العد السادس عشري
>> الأسئلة الشائعة
What is Base16 encoding?
Base16, also known as hexadecimal, is a numeral system that uses 16 symbols (0-9 and A-F) to represent binary data in a human-readable format.
When should I use Base16?
Base16 is ideal for representing binary data, color codes, memory addresses, and debugging purposes. It's commonly used in programming and system administration.
Is Base16 the same as hexadecimal?
Yes, Base16 and hexadecimal are the same. Hexadecimal is the more common name for the base-16 numeral system.
Can I decode any Base16 string?
You can decode any valid Base16 string that contains only the characters 0-9 and A-F (case insensitive). Invalid characters will result in an error.
// مقارنة Base16
| الترميز | البتات لكل حرف | زيادة الحجم |
|---|---|---|
| Base16 | 4 | 100% |
| Base32 | 5 | 60% |
| Base64 | 6 | 33% |
// Base16 في الشيفرة
Linux/macOS echo -n Hello | xxd -p # 48656c6c6f
echo 48656c6c6f | xxd -r -p # Hello
Python 'Hello'.encode().hex() # '48656c6c6f'
bytes.fromhex('48656c6c6f')
Node.js Buffer.from('Hello').toString('hex')
Buffer.from('48656c6c6f', 'hex').toString()
>> المزيد من الأسئلة
س: لماذا يضاعف Base16 حجم البيانات؟
ج: كل بايت يصبح حرفين، أي زيادة بنسبة 100%. بينما يضيف Base64 نحو 33% فقط، لكن Base16 أسهل قراءة وتنقيحاً.
س: ما الفرق بين Base16 وسلسلة سداسية عشرية فيها 0x أو مسافات؟
ج: Base16 وفق RFC 4648 هو تسلسل الأرقام 0–9 وA–F فقط دون بادئة أو فواصل. البادئات مثل 0x أو المسافات بين البايتات اصطلاحات عرض يجب إزالتها قبل فك الترميز.
س: لماذا يجب أن يكون طول سلسلة Base16 الصحيحة زوجياً؟
ج: كل بايت يتكون من رقمين بالضبط. الطول الفردي يعني نقص حرف أو حذف صفر بادئ (مثل F بدل 0F).