صورة ↔ Base64 — ترميز وفك
خطوات: اختر الملفات واضبط الخيارات ثم صدّر. مثال: كتل ألوان للتجربة. العملية محلية في المتصفح دون رفع. encode image to data URL or decode Base64 to file. حدود تقريبية 25MB/8192px.
كيف يعمل
Use Encode to read a file as a data URL, or Decode to paste Base64 and download an image.
القواعد
Encode uses readAsDataURL. Decode accepts data:image… or raw Base64 (default MIME image/png).
- Optional strip of the data: prefix for raw Base64.
- Invalid strings show an error.
- Large strings may use more memory.
- Nothing is uploaded.
مثال
Sample encodes a small PNG and shows the data URL in the output box.
حالات مناسبة
- Embed small icons in HTML/CSS.
- Debug email or markdown image payloads.
- Recover a preview from a Base64 dump.
Frequently asked questions
Uploaded?
No.
Data URL vs raw?
Data URLs include a MIME prefix; raw is only the Base64 body.
Huge files?
Possible but memory-heavy—prefer compress first.
Which MIME on decode?
Taken from the data URL, or image/png for raw.
Animated GIF?
Encoded as a file blob; animation is not edited here.
استفسارات أو ملاحظات
هل هناك غموض أو خلل أو نقص؟ اكتب رسالة أدناه — نقرأ كل ملاحظة عن هذه الأدوات.