نص إلى عشري

تحويل النص إلى تمثيل عشري بسهولة

أداة

0 characters

Enter text to convert to decimal values. Choose between UTF-8 (supports all characters) and ASCII (only 128 characters). Options to add spaces between decimal values are available.

التحويل:

Character القيمة العشرية

حول النص إلى نص تحويل

ترميز

تستخدم أنظمة الترميز المختلفة أرقاما مختلفة للأحرف:

ASCII

The ASCII (American Standard Code for Information Interchange) encoding uses 7 bits to represent 128 characters, including English letters (both uppercase and lowercase), digits, and common punctuation symbols. Each ASCII character can be represented by a unique number between 0 and 127.

UTF-8

UTF-8 هو متغير لترميز الأحرف ength الذي يمكن أن يمثل كل حرف في معيار Unicode. يستخدم من 1 إلى 4 بايت لكل حرف. UTF-8 متوافق مع الإصدارات السابقة مع ASCII ، مما يعني أن أول 128 حرفا من رموز UTF-8 متطابقة مع ASCII.

عملية

يتضمن تحويل النص إلى رقم عشري الخطوات التالية:

  1. Determine the numerical value of each character using the chosen encoding (ASCII or UTF-8).
  2. Convert each character to its corresponding decimal (base-10) value.
  3. اختياريا ، افصل كل قيمة عشرية بمسافة لسهولة القراءة.

مثال: تحويل "Hi" إلى

Step 1: Convert each character to its numerical value (ASCII):

H → 72

i → 105

Step 2: Combine the decimal values (with spaces):

72 105

ملاحظات

  • When using ASCII encoding, any character outside the 7-bit ASCII range (128-255) will be converted to a question mark (?).
  • يدعم ترميز UTF-8 جميع أحرف Unicode ، بما في ذلك الرموز الخاصة والرموز التعبيرية والأحرف من اللغات غير الإنجليزية.
  • يمكن تمثيل كل حرف UTF-8 بقيم عشرية متعددة إذا كان يستخدم أكثر من بايت واحد.
  • غالبا ما تستخدم القيم العشرية في الحوسبة للعمليات العددية وتمثيل البيانات.

Related Tools