الترميز
Base32
ترميز وفك ترميز Base32 (RFC 4648) — نص وملفات، مباشرة في المتصفح.
Base32, like Base64, encodes binary data as text, but uses an alphabet of only 32 characters (A-Z2-7) with no easily confused characters (0/O, 1/I). That's why Base32 shows up more often where a string might be typed by a person, not just copy-pasted.
How to use it
- Encode: enter text or pick a file to get a Base32 string per RFC 4648.
- Decode: paste a Base32 string to get the original text or file back.
- The alphabet is case-insensitive per the spec, though uppercase is the conventional way to write it.
Common uses
- Generating secrets for TOTP/2FA — authenticator apps use Base32 for the secret key specifically.
- Encoding identifiers or tokens a user might need to type by hand without confusing similar-looking characters.
- Working with formats that require Base32 instead of Base64 (some DNS records or case-insensitive file systems, for instance).
Things to keep in mind
Base32 grows data by roughly 60% (versus ~33% for Base64) — a trade-off for broader compatibility with case-insensitive systems and manual entry.
Base32hex is a separate variant of the same standard with a different alphabet (0-9A-V) that preserves sort order — it's incompatible with plain Base32.
مقالة عن هذه الأداة: Base32: ما الفرق بينه وبين Base64 ومتى يكون أنسب
الأسئلة الشائعة
ما الفرق بين Base32 وBase64؟
يستخدم Base32 أبجدية أصغر (الأحرف A-Z والأرقام 2-7 فقط) وهو غير حساس لحالة الأحرف، مما يجعله مناسبًا لأسماء الملفات أو الحقول التي لا تفرّق بين الأحرف الكبيرة والصغيرة، لكنه أطول من Base64 بنحو 60٪ تقريبًا.
متى يُفضَّل استخدام Base32 بدلًا من Base64؟
يُستخدم غالبًا في سياقات مثل مفاتيح TOTP للمصادقة الثنائية، أو أسماء نطاقات وملفات لا تفرّق بين حالة الأحرف، حيث يكون تجنب التشابه بين رموز مثل 0 وO أو 1 وI أهم من حجم الناتج.
هل تُرسَل الملفات أو النصوص إلى خادم عند الترميز؟
لا، جميع عمليات الترميز وفك الترميز تعمل بالكامل داخل متصفحك دون رفع أي بيانات إلى أي خادم.
لماذا لا تحتوي أبجدية Base32 على الرقمين 0 و1؟
لأن هذين الرقمين يسهل الخلط بينهما وبين الحرفين O وI/l عند القراءة أو الإدخال اليدوي، لذا استبعدهما معيار RFC 4648 عمدًا من الأبجدية، مبقيًا فقط على الرموز التي لا لبس فيها.
ما الفرق بين Base32 وBase32hex؟
يستخدم Base32hex (وفق المعيار نفسه RFC 4648) الأبجدية 0-9A-V بدلاً من A-Z2-7، ويحافظ على ترتيب فرز السلاسل مطابقًا لترتيب البايتات الأصلية. البديلان غير متوافقين مع بعضهما.