ترميز Base91 وفك ترميزه
رمّد سلاسل Base91 وافك ترميزها في المتصفح — أكثر إحكامًا من Base64 للبيانات الثنائية.
Base64 is ubiquitous but not optimal — it inflates data by 33%. Base91 is a lesser-known encoding that achieves better density by using a 91-character alphabet, typically producing output 10–15% smaller than the equivalent Base64 string. For applications where every byte counts — embedded payloads, URL-embedded data, or bandwidth-constrained channels — Base91 is worth reaching for.
This tool encodes arbitrary text or binary data to Base91 and decodes Base91 strings back to their original form. It is useful for developers working on data serialisation in constrained environments, anyone exploring alternative encodings for educational purposes, or security researchers analysing obfuscated payloads that may use non-standard encodings.
كيف تُرمّز وتفك ترميز Base91 على الإنترنت
- 1
الصق الإدخال
الصق نصًا عاديًا أو سلسلة مشفرة بـ Base91 في لوحة الإدخال.
- 2
اختر التشفير أو فك التشفير
اختر التشفير لإنتاج سلسلة Base91، أو فك التشفير لاسترداد البيانات الأصلية. تُبلّغ الأداة عن أي أحرف غير صالحة.
- 3
انسخ النتيجة
انسخ الإخراج. إخراج Base91 أصغر عادةً بنسبة 8–10% من Base64 المكافئ.
How Base91 Encoding Works
Base91 was designed by Joachim Henke to maximise encoding efficiency while using only printable ASCII characters safe for use in most text contexts. It works by processing the input bitstream in 13-bit chunks rather than the 6-bit chunks used by Base64. Two output characters encode 13 bits rather than 6 bits per character, achieving a theoretical expansion ratio of about 1.23× versus Base64's 1.33×. The 91-character alphabet deliberately excludes characters that cause problems in common contexts — no single or double quotes, no backslash, no angle brackets.
Because 91 is not a power of two, the encoding algorithm uses a modular arithmetic trick rather than simple bit masking, which makes it slightly more complex to implement but delivers the efficiency gain. Decoders must handle the tail of the input carefully when the total bit count is not a multiple of 13.
لماذا تستخدم أداة Base91 من FileCrank؟
- ✓ ينتج إخراجًا أصغر بنسبة تقريبية 8–10% من Base64.
- ✓ يستخدم 91 حرفًا ASCII قابلًا للطباعة لأقصى توافق.
- ✓ يتحقق من الإدخال ويُبلّغ عن الأحرف غير الصالحة بوضوح.
- ✓ يعمل بالكامل في المتصفح — لا تُرسل بيانات إلى أي خادم.
الميزات والمواصفات
الأسئلة الشائعة
ما هو Base91 وكيف يختلف عن Base64؟
يستخدم Base91 تسعة وتسعين حرفًا ASCII قابلًا للطباعة ويُرمّد البيانات بكفاءة أعلى من Base64 — تقريبًا 1.23 بايت لكل بايت إدخال مقابل 1.33 لـ Base64 — مما يجعل الإخراج أصغر بحوالي 8–10%.
متى أستخدم Base91 بدلاً من Base64؟
استخدم Base91 عندما يكون تمثيل ASCII المضغوط للبيانات الثنائية مهمًا والنظام المستقبِل يدعم فك ترميز Base91. إنه غير شائع في البروتوكولات المعيارية. إذا لم تكن متأكدًا، استخدم Base64.
هل يمكن لـ Base91 ترميز بيانات ثنائية عشوائية؟
نعم. يمكن لـ Base91 ترميز أي تسلسل بايتات وإنتاج سلسلة ASCII قابلة للطباعة وآمنة للنقل في معظم الأنظمة النصية.
هل Base91 هو نفسه Base85 أو Base92؟
لا. يستخدم Base85 (Ascii85) خمسة وثمانين حرفًا قابلًا للطباعة ويُستخدم في PDF. يستخدم Base91 واحدًا وتسعين حرفًا. Base92 نظام مختلف وأقل شيوعًا. كل نظام ينتج إخراجًا مختلفًا للمدخل نفسه.
Base91 vs. Base64 vs. Base85
Base64 is supported everywhere and should remain the default for interoperability. Base85 (used in PDF and git binary patches) is also more compact than Base64 but uses characters that can conflict with shell and XML contexts. Base91 strikes a middle ground — better density than Base64, a safer alphabet than Base85, but with almost no standard library support. Use Base91 when you control both encoder and decoder and want compact printable output.
أدوات ذات صلة
ترميز Base64 وفك ترميزه
رمّز النص أو البيانات الثنائية بتنسيق Base64، أو فك ترميز سلاسل Base64 إلى نص عادي، فورًا في متصفحك.
ترميز وفك ترميز URL
رمّز URLs بنسبة مئوية للاستخدام الآمن في سلاسل الاستعلام، أو فك ترميز URLs المشفرة إلى نص عادي.
bin2hex
حوّل البيانات الثنائية إلى سلاسل hex والعكس على مستوى البايت — مثل دالتي PHP bin2hex() وhex2bin().
أداة ترميز/فك ترميز Base91 من FileCrank تُرمّد البيانات الثنائية كـ ASCII قابل للطباعة باستخدام 91 حرفًا، مما ينتج إخراجًا أكثر إحكامًا بنسبة 8–10% من Base64، بالكامل في متصفحك.
Advertisement