حوّل صورة إلى 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/ar/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 ومكوّناتها بصيغة النسبة المئوية (percent-encoding)، بأمان مع UTF-8.
فُكّ ترميز رمز JSON Web Token لفحص رأسه وحمولته، مع أوقات انتهاء وإصدار بصيغة مقروءة. يعمل بالكامل داخل متصفحك، ولا تُرفع الرموز أبداً.
أنشئ تجزئات SHA-1 وSHA-256 وSHA-384 وSHA-512 لأي نص، مباشرة داخل متصفحك.