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

Base64 קידוד ופענוח

קודד טקסט או נתונים בינאריים ל-Base64 ופענח מחרוזות Base64 לטקסט רגיל, מיידית בדפדפן.

Input
0 chars | 0 bytes
Encode
Output
0 chars | 0 bytes

Base64 encoding is the go-to solution whenever you need to transmit binary data through a channel designed for text. Whether you are embedding images directly in CSS, passing authentication credentials in an HTTP header, or storing binary blobs in JSON payloads, Base64 gives you a reliable, universally understood encoding that survives every text-safe transport layer intact.

Developers reach for Base64 constantly — in JWTs, data URIs, MIME email attachments, and environment variables that carry certificates or keys. This tool lets you encode any UTF-8 string or paste a Base64 string and decode it instantly, so you can inspect tokens, debug API payloads, and verify encoded assets without leaving the browser.

איך לקודד ולפענח Base64 אונליין

  1. 1

    הדבק את הקלט

    הדבק טקסט רגיל או מחרוזת Base64 בלוח הקלט. בחר קידוד או פענוח.

  2. 2

    קבל תוצאה מיידית

    הפלט המקודד או המפוענח מופיע מיידית. הכלי מאמת את הקלט ומדווח על המיקום המדויק של כל תו Base64 לא חוקי.

  3. 3

    העתק את הפלט

    העתק את התוצאה ללוח. תומך ב-Base64 סטנדרטי (RFC 4648) ובגרסאות Base64 בטוחות ל-URL.

How Base64 Encoding Works

Base64 works by splitting the input byte stream into 6-bit groups rather than the usual 8-bit bytes. Each 6-bit value maps to one of 64 printable ASCII characters — the uppercase and lowercase Latin alphabet, the digits 0–9, and the two symbols `+` and `/`. Because 6 bits fit into one character and 8 bits make one byte, every 3 bytes of input produce exactly 4 Base64 characters, expanding the data by roughly 33%.

When the input length is not a multiple of three, padding characters (`=`) are appended to keep the output length a multiple of four. URL-safe Base64 replaces `+` with `-` and `/` with `_` to avoid conflicts in query strings and filenames — important to know when decoding tokens from OAuth or JWT sources.

למה להשתמש בכלי Base64 של FileCrank?

  • ✓ תמיכה ב-Base64 סטנדרטי (RFC 4648) וב-Base64 בטוח ל-URL.
  • ✓ אימות קלט והדגשת תווים לא חוקיים עם מיקום.
  • ✓ מטפל בייצוגי טקסט ונתונים בינאריים.
  • ✓ פועל לחלוטין בדפדפן — שום נתון לא נשלח לשרת.

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

גודל קובץ מקסימלי
עד 100 MB
פרטיות
הקבצים נמחקים לאחר כשעה
מחיר
חינם, ללא הרשמה
עיבוד
100% בדפדפן
תקן קידוד
RFC 4648 — URL-safe variant supported
תמיכה בלוח
One-click copy to clipboard
הנתונים שלך לא יוצאים מהדפדפן — כל העיבוד הוא מקומי.ללא צורך בחשבון או הרשמה.חינמי ללא הגבלת שימוש.

שאלות נפוצות

לשם מה משתמשים בקידוד Base64?

Base64 משמש להטמעת נתונים בינאריים — תמונות, גופנים, קבצים — בפורמטים טקסטואליים כמו JSON, HTML, XML ואימייל. הוא מקודד כל 3 בייטים כ-4 תווי ASCII, מה שמגדיל את הגודל בכ-33%.

מה ההבדל בין Base64 סטנדרטי ל-Base64 בטוח ל-URL?

Base64 סטנדרטי משתמש בתווים + ו-/ שיש להם משמעות מיוחדת ב-URLs. Base64 בטוח ל-URL מחליף אותם ב-- ו-_, מה שהופך את הפלט לבטוח לשימוש במחרוזות שאילתה ושמות קבצים ללא קידוד אחוזים.

למה הפלט המפוענח מ-Base64 נראה לא קריא?

הקלט היה כנראה נתונים בינאריים (תמונה או קובץ), לא מחרוזת טקסט UTF-8. נתונים בינאריים מקודדים ב-Base64 מפוענחים לבייטים בינאריים. אם מצפים לטקסט קריא, ייתכן שהמקודד המקורי קידד קובץ שאינו טקסט.

האם יש מגבלת גודל לקידוד Base64 כאן?

הכלי מטפל בקלטים עד הגבול המוצג. לקידוד Base64 של קבצים גדולים בדפדפן, זה מעשי עד כמה מגה-בייטים לפני שמגבלות הזיכרון הופכות לרלוונטיות.

Base64 vs. Hex Encoding vs. Compression

Hex encoding is simpler — each byte becomes two hex digits — but it doubles the data size instead of adding only 33%. Base85 and Base91 are more compact than Base64 but far less universally supported. If size is the concern and both ends control the codec, consider zlib or gzip compression before encoding. Base64 wins on compatibility: every standard library in every language ships a Base64 codec, making it the safest default for interoperability.

כלי Base64 של FileCrank ממיר טקסט ונתונים בינאריים מ-Base64 ואליו, תומך ב-RFC 4648 ובגרסאות URL-safe, לחלוטין בדפדפן שלך.

Advertisement

Ad