Let K denote an algebraic number field such that \(n=[K:\mathbb {Q}]\ge 2\) , its ring of integers \(\mathcal {O}_K\) is a principal ideal domain and 2 is a product of n distinct (non-associates) primes in \(\mathcal {O}_K\) . For quadratic field K with the above conditions, M. Nullwala and A. Garge [3] gave a necessary and sufficient condition for a diagonal quadratic form \(\displaystyle {\sum _{i=1}^{m}a_iX_i^2}\) where \(a_i\in \mathcal {O}_K\) for all \(1\le i \le m\) for representing all \(2\times 2\) matrices over \(\mathcal {O}_K\) . In this paper, we prove that the same necessary and sufficient condition for a diagonal quadratic form to represent all \(2\times 2\) matrices over \(\mathcal {O}_K\) also holds for an algebraic number field K such that \([K:\mathbb {Q}]>2\) .