> encode | decode | ascii85 <

// ترميز Base85 للضغط الفعال للبيانات

[EFFICIENT]

High Efficiency

More efficient than Base64, producing ~25% smaller output for the same data.

[SECURE]

Local Processing

All conversions happen in your browser. Your data never leaves your device.

[STANDARD]

Adobe Standard

Uses the standard ASCII85 format with <~ ~> delimiters, compatible with PostScript.

// حول ترميز BASE85

كيف يعمل Base85:

Base85 (ASCII85) يستخدم 85 حرفاً قابلاً للطباعة لتمثيل البيانات. يوفر كفاءة ضغط أفضل من Base64، مما يجعله مثالياً للبيانات الكبيرة.

مثال:

"مرحبا" → <~87cURD]i~>

لماذا استخدم Base85:

  • >كفاءة ضغط عالية
  • >أصغر من Base64
  • >يستخدم في PostScript/PDF
  • >مثالي للبيانات الكبيرة
  • >جودة ضغط ممتازة

>> الأسئلة الشائعة

What is Base85 encoding?

Base85, also known as ASCII85, is a binary-to-text encoding scheme that uses 85 printable ASCII characters to represent binary data more efficiently than Base64.

Why is Base85 more efficient than Base64?

Base85 encodes 4 bytes as 5 characters (80% efficiency) while Base64 encodes 3 bytes as 4 characters (75% efficiency), making Base85 about 25% more space-efficient.

What are the <~ ~> delimiters?

The <~ and ~> delimiters are part of the Adobe ASCII85 standard, marking the beginning and end of encoded data. They help identify Base85 content in documents.

What does the 'z' character mean?

The 'z' character is a special shortcut in ASCII85 that represents four consecutive zero bytes (\x00\x00\x00\x00), making the encoding more efficient.

// مرجع سريع

المدخلASCII85Base64
Man 9jqo^TWFuIA==
sure.F*2M7/cc3VyZS4=
Hello87cURDZSGVsbG8=
\0\0\0\0zAAAAAA==

// أمثلة برمجية

Adobe     <~87cURDZ~>            (PostScript / PDF, z = four zero bytes)
Python    base64.a85encode(b'Hello')  ->  b'87cURDZ'
          base64.b85encode(b'Hello')  ->  b'NM&qnZv'   (RFC 1924 / Git alphabet)
Z85       ZeroMQ, safe to embed in source strings
Size      4 bytes -> 5 chars  (Base64: 4 bytes -> 5.33 chars)

>> المزيد من الأسئلة

س: ما الفرق بين ASCII85 وBase85 وZ85؟

ج: الثلاثة تعتمد الحساب نفسه (4 بايتات ← 5 أحرف) لكن بأبجديات مختلفة: يستخدم ASCII85 (Adobe في PDF/PostScript) الأحرف من ! إلى u مع <~ … ~> والحرف z لأربعة بايتات صفرية؛ وBase85 (RFC 1924 وGit) أبجدية أخرى؛ وZ85 (ZeroMQ) أبجدية آمنة للتضمين في الشيفرة.

س: كم حجم Base85 مقارنة بـ Base64؟

ج: كل 4 بايتات تعطي 5 أحرف بالضبط مقابل نحو 5.33 في Base64. تنخفض الزيادة من 33% إلى 25%، أي نحو 25% أحرف أقل للبيانات نفسها.

س: هل Base85 آمن للاستخدام في الروابط؟

ج: لا. يحتوي ASCII85 على أحرف مثل & , ; ' " < > تحتاج إلى تهريب في الروابط وHTML وسطر الأوامر. للروابط استخدم Base64url، وللشيفرة المصدرية يناسب Z85 أكثر.

Base85 Encoder Decoder — Base64.sh

مشفر فك تشفير Base85 | أداة تحويل ASCII85 مجانية عبر الإنترنت

مشفر وفك تشفير Base85 (ASCII85) مجاني عبر الإنترنت. كفاءة ترميز عالية لضغط البيانات.

مشاركة:

X Facebook LinkedIn Reddit

المراجع

كيف نتحقق من النتائج

نتحقق من هذه الأداة بالاختبارات الآلية المرتبطة أدناه. تُعرض أسماء الأمثلة بلغتها الأصلية.

Verification method
Cross-decode page and Python outputs, including UTF-8, high bytes and partial four-byte groups.
Comparison reference
Python standard-library base64.a85encode / a85decode.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
  • encoding-reliability.test.js
    • ASCII85 and Base85: real encoders and decoders agree with Python base64.a85 including UTF-8 and partial tuples

تغطي الاختبارات الأمثلة والحدود المذكورة، وليس كل المدخلات الممكنة. التحويل ذهاباً وإياباً أو استخدام المكتبة نفسها ليس تحققاً مستقلاً.