First one has to believe and confess his own faith. That means that you have to be old enough to make your own decisions. It is because of your own faith in God, and on your own confession, that you can be baptised to Jesus Christ. And baptism is in the name of God the Father, Jesus Christ and the Holy Spirit.
There is not salvation in baptism, but baptism is a proclamation of salvation!
Baptism is a confirmation of your own faith
In fact, it is a covenant between you and God. It is more than a symbolic act. In baptism you bury your old sinful life. Baptism literally means a full immersion, to be put completely under water. This makes baptism a confirmation of your surrendering to God.
In other words you confess to belong to Jesus the Son of God. With this you proclaim that you believe in His death on the cross and His resurrection from the dead. It is also saying that you turn from the life you used to live.
Adam and Eve separated us human beings spiritually from God. Jesus Christ restored direct contact to God. To be born again means that something else has died and that the Spirit of God comes to live in you and gives your spirit life. The Bible tells us: “Therefore, if anyone is in Christ, he is a new creation. Old things have passed away, behold, all things have become new.” ( 2 Corinthians 5:17)
In baptism you identify with the death and resurrection of Jesus. You bury your old life, and are raised again to a new life in Christ.
Therefore, it is important that you repent from your old life, turn away from the things that do not honour God and identify yourself with Jesus Christ.
He who believes and is baptised will be saved!