Base85 / Ascii85 Encoder & Decoder
مرشد
Base85 / Ascii85 Encoder & Decoder
Encode text to Base85 or decode Base85-encoded data back to its original form. Base85 encoding converts 4 bytes of binary data into 5 printable ASCII characters, offering better space efficiency than Base64 (25% overhead vs 33%). This tool supports three major Base85 variants used across different applications.
كيف تستعمل
Select your mode (Encode or Decode), choose a Base85 variant, paste your input text or encoded data, and click يتحول. The tool processes everything in your browser and displays the result along with input/output size comparison.
سمات
- ثنائي الاتجاه – Encode text to Base85 or decode Base85 back to original text
- Three Variants – Ascii85 (Adobe/btoa with <~ ~> delimiters), RFC 1924 (Python/git), and Z85 (ZeroMQ)
- Ascii85 Special Handling – Supports the ‘z’ shortcut for all-zero groups and automatic delimiter wrapping
- مقارنة الحجم – Shows input vs output byte sizes with overhead percentage
- Whitespace Tolerant – Decoder ignores whitespace in Ascii85 input for flexible pasting
- Error Detection – Clear messages for invalid characters or malformed encoded data
- من جانب العميل فقط – يتم التشفير وفك التشفير بالكامل في متصفحك
التعليمات
-
What is the difference between Base85 and Base64?
Both are binary-to-text encoding schemes, but they use different radixes. Base64 encodes 3 bytes into 4 characters (33% overhead), while Base85 encodes 4 bytes into 5 characters (25% overhead). Base85 is more space-efficient but uses a wider range of printable ASCII characters. Base64 is more widely supported across protocols and systems, while Base85 is commonly used in PostScript, PDF files, git binary patches, and ZeroMQ messaging.
-
What are the differences between Ascii85, RFC 1924, and Z85?
All three encode 4 bytes into 5 characters using base-85 arithmetic, but they differ in their character sets and conventions. Ascii85 (Adobe) uses characters ! through u (ASCII 33-117), wraps output in delimiters, and has a special 'z' shortcut for all-zero groups. RFC 1924 uses 0-9, A-Z, a-z, and selected symbols — this variant is used by Python and git. Z85 (ZeroMQ) uses its own character set optimized for embedding in source code and XML without escaping issues.
-
When should I use Base85 encoding?
Use Base85 when you need to embed binary data in text format and space efficiency matters more than universal compatibility. Common use cases include PostScript and PDF document streams (Ascii85), git binary diff patches (RFC 1924), ZeroMQ message framing (Z85), and any application where the 8% space savings over Base64 is significant for large payloads. For general web APIs and email attachments, Base64 remains the safer choice due to wider support.
تثبيت ملحقاتنا
أضف أدوات IO إلى متصفحك المفضل للوصول الفوري والبحث بشكل أسرع
恵 وصلت لوحة النتائج!
لوحة النتائج هي طريقة ممتعة لتتبع ألعابك، يتم تخزين جميع البيانات في متصفحك. المزيد من الميزات قريبا!
