המירו תמונה ל-data URI מסוג Base64 להטמעה ב-HTML, ב-CSS או ב-JSON, הכול בתוך הדפדפן שלכם.
כיצד להשתמש בתמונה ל-Base64
בחרו תמונה מהמכשיר שלכם.
העתיקו את ה-data URI, או את קטע ה-CSS המוכן.
הדביקו אותו ב-HTML, ב-CSS או ב-JSON שלכם.
This image to Base64 converter turns a picture into a data URI, a long text string that embeds the image directly, plus a ready-to-use CSS background snippet. You can inline an image instead of linking to a separate file.
It runs locally in your browser, so your image is read on your device and never uploaded.
A data URI carries the whole image inside the markup, so the browser does not make a separate network request to fetch it. For small assets like icons, that saved round trip can make a page feel faster.
The catch is size and caching. Base64 adds roughly 33 percent overhead because it represents binary data with a limited text alphabet, and an inlined image cannot be cached separately, so it is downloaded again with every page that contains it.
The rule of thumb is to inline small images, icons, tiny logos or a sprite, where avoiding a request is worth the overhead, and to keep larger images as normal files that the browser can cache and load in parallel.
Data URIs work anywhere a URL is accepted: an img src, a CSS background, or a field in JSON or an email template. That makes them handy for self-contained snippets.
שאלות נפוצות
לא. התמונה נקראת כולה בתוך הדפדפן שלכם, כך שהיא לעולם לא עוזבת את המכשיר.
עבור תמונות קטנות כמו אייקונים, היכן שחיסכון בבקשת רשת נוספת שווה את הגדלת הגודל. עבור תמונות גדולות, קובץ רגיל עדיף.
קידוד Base64 מוסיף תקורה של כ-33 אחוז מכיוון שהוא מייצג נתונים בינאריים באמצעות אלפבית טקסט מצומצם.
הטמע את הכלי הזה
הוסף את הכלי הזה לאתר שלך. העתק את קטע הקוד שלהלן; הוא מתעדכן אוטומטית.
<iframe src="https://monu.tools/embed/he/image-to-base64" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>כלים קשורים
קודדו טקסט ל-Base64 או פענחו Base64 בחזרה לטקסט. בטוח ל-UTF-8 עם זיהוי כיוון אוטומטי.
קודדו ופענחו כתובות URL ורכיבי URL בקידוד אחוזים, עם תמיכה בטוחה ב-UTF-8.
פענחו JSON Web Token כדי לבחון את הכותרת (header) והמטען (payload) שלו, עם זמני תפוגה והנפקה בפורמט קריא. הכול פועל בדפדפן שלכם; אסימונים לעולם לא מועלים.
צרו ערכי Hash מסוג SHA-1, SHA-256, SHA-384 ו-SHA-512 לכל טקסט, ישירות בדפדפן שלכם.