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 משתמש ב-91 תווי ASCII מודפסים ומקודד נתונים ביעילות רבה יותר מ-Base64 — בערך 1.23 בייטים לכל בייט קלט לעומת 1.33 עבור Base64 — מה שהופך את הפלט לקטן בכ-8–10%.
מתי להשתמש ב-Base91 במקום ב-Base64?
השתמש ב-Base91 כאשר חשוב ייצוג ASCII קומפקטי של נתונים בינאריים והמערכת המקבלת תומכת בפענוח Base91. הוא לא נפוץ בפרוטוקולים סטנדרטיים. אם לא בטוח, השתמש ב-Base64.
האם Base91 יכול לקודד נתונים בינאריים שרירותיים?
כן. Base91 יכול לקודד כל רצף בייטים ולייצר מחרוזת ASCII מודפסת בטוחה לשידור ברוב המערכות הטקסטואליות.
האם Base91 זהה ל-Base85 או Base92?
לא. Base85 (Ascii85) משתמש ב-85 תווים מודפסים ומשמש ב-PDF. Base91 משתמש ב-91 תווים. 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.
כלים קשורים
כלי Base91 של FileCrank מקודד נתונים בינאריים כ-ASCII מודפס באמצעות 91 תווים, מייצר פלט קומפקטי ב-8–10% יותר מ-Base64, לחלוטין בדפדפן שלך.
Advertisement