דלג לתוכן הראשי

ממיר אוקטלי

המר מספרים אוקטליים לעשרוני, בינארי והקס — או הכנס עשרוני לקבלת אוקטלי. אידיאלי להרשאות קבצים ב-Unix.

Input
0 chars | 0 bytes
Output
Decimal
Binary
Octal
Hexadecimal

Octal encoding survives in one highly practical domain: Unix file permissions. The familiar `chmod 755` and `chmod 644` commands use octal values where each digit encodes three permission bits — read, write, and execute — for owner, group, and others. Understanding what `0755` means in binary and decimal is essential for any sysadmin or developer working on Unix or Linux systems.

Beyond permissions, octal appears in C and C++ string literals (`\0141` for the letter 'a'), in some network protocols, and occasionally in legacy systems. This tool converts octal values to decimal, binary, and hex so you can cross-reference representations and verify permissions or protocol values without mental arithmetic.

איך להמיר מספרים אוקטליים אונליין

  1. 1

    הכנס מספר אוקטלי או עשרוני

    הקלד מספר אוקטלי (ספרות 0–7) או מספר עשרוני. תווים מחוץ לטווח החוקי מסומנים מיידית עם שגיאה מוטבעת.

  2. 2

    ראה את כל הייצוגים

    מקבילות עשרוני, בינארי והקסדצימלי מופיעים מיידית. שימושי במיוחד עבור ערכי הרשאות קבצים ב-Unix כמו chmod 755.

  3. 3

    העתק את התוצאה

    העתק את הייצוג שאתה צריך. כל החישוב רץ מקומית בדפדפן.

How Octal Representation Works

Octal is base 8, using the digits 0–7. Each octal digit represents exactly three bits, which is why it pairs naturally with groups of three binary digits. Converting from binary to octal groups bits in threes from the right: binary `111 101 101` maps directly to octal `755`. This three-bit alignment makes octal significantly more readable than binary for permission analysis without requiring the two-character padding that hexadecimal needs.

The leading zero convention in C-family languages (`0755`) signals to the compiler that the literal is octal, not decimal. This is a common source of bugs — `010` in C is 8, not 10. In Python 3 the syntax was changed to `0o755` to make the octal prefix unambiguous. Modern shells accept both `chmod 755` and `chmod 0755` and treat them identically.

למה להשתמש בממיר האוקטלי של FileCrank?

  • ✓ המרת אוקטלי לעשרוני, בינארי והקס בו-זמנית.
  • ✓ אידיאלי לערכי הרשאות קבצים ב-Unix (chmod 755, 644).
  • ✓ הדגשת שגיאות מוטבעת לספרות לא חוקיות (8 או 9).
  • ✓ פועל לחלוטין בדפדפן — שום נתון לא נשלח לשרת.

תכונות ומפרטים

גודל קובץ מקסימלי
עד 100 MB
פרטיות
הקבצים נמחקים לאחר כשעה
מחיר
חינם, ללא הרשמה
עיבוד
100% בדפדפן
הנתונים שלך לא יוצאים מהדפדפן — כל העיבוד הוא מקומי.ללא צורך בחשבון או הרשמה.חינמי ללא הגבלת שימוש.

שאלות נפוצות

לשם מה משתמשים במספרים אוקטליים בתכנות?

אוקטלי משמש בעיקר להרשאות קבצים ב-Unix. ערך הרשאה כמו 755 אומר שהבעלים יכול לקרוא/לכתוב/להריץ (7 = 111 בינארי), הקבוצה יכולה לקרוא/להריץ (5 = 101 בינארי), ואחרים יכולים לקרוא/להריץ.

מה הערך האוקטלי של המספר העשרוני 255?

255 עשרוני = 377 אוקטלי. לאימות: 3×64 + 7×8 + 7×1 = 192 + 56 + 7 = 255. הכלי הזה מבצע את החישוב מיידית.

למה רק ספרות 0–7 חוקיות באוקטלי?

אוקטלי הוא בסיס 8, לכן הספרות החוקיות הן 0 עד 7. הספרות 8 ו-9 לא קיימות באוקטלי. הכנסתן היא טעות נפוצה בעת הקלדת ערכי הרשאות Unix.

איך ממירים הרשאת קובץ Unix כמו chmod 755 לבינארי?

הכנס 755 כקלט אוקטלי. פלט הבינארי יציג 111101101, שממפה לשלוש קבוצות ההרשאות של 3 ביטים: rwx r-x r-x.

Octal Converter vs. Python oct() vs. chmod Calculators

Dedicated `chmod` calculators exist online and are excellent for permission work, but they are scoped to Unix permissions and do not show binary or hex equivalents. Python's `oct()` converts integers but requires a REPL and does not show cross-base representations. A general-purpose octal converter is useful beyond permissions — for C literal debugging, legacy protocol analysis, and learning numeral systems — while still being instant and browser-based.

ממיר האוקטלי של FileCrank ממיר מספרים אוקטליים לעשרוני, בינארי והקס עם הדגשת שגיאות מוטבעת, שימושי להרשאות קבצים ב-Unix ולתכנות, בדפדפן שלך.

Advertisement

Ad