تخطى إلى المحتوى الرئيسي

ترميز 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) والمتغيرات الآمنة لـ 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 ميغابايت
الخصوصية
تُحذف الملفات بعد نحو ساعة
السعر
مجاني، بدون تسجيل
المعالجة
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، بالكامل في متصفحك.

Advertisement

Ad