One becomes a Muslim by believing in the Two Testifications of Faith and uttering them with the intention of leaving out blasphemy.
What are the Two Testifications of Faith?
The Two Testifications of Faith are:
I BEAR WITNESS THAT NO ONE DESERVES TO BE WORSHIPED EXCEPT GOD and
I BEAR WITNESS THAT MUHAMMAD* IS THE MESSENGER OF GOD
The non-Muslim embraces Islam by believing in the Two Testifications of Faith and uttering them with the intention of leaving out blasphemy. One does not need witnesses in order to embrace Islam. One can utter the Testifications of Faith in public or in private.
The first Testification means that no one or thing deserves to be worshipped except God Who is the Creator of everything.
The second Testification states that Muhammad the son of ^Abdullah who was born in Makkah approximately 1400 years ago is a messenger of God. He was sent to convey what God revealed to him so that the humans believe in and work with the Laws he received and brought. He is truthful in all what he conveyed.
The Two Testifications reject the Godhood of anyone or anything other than God. They confirm the Godhood of God (Allah) only with the acknowledgment of the message of Prophet Muhammad.
*One can say the name “Ahmad” or “Abu Qaasim” which are both names of Prophet Muhammad. If one is unable to pronounce “Muhammad” properly, then one can say “Abu Qaasim” instead.