Having your sins forgiven is what is called being saved, born again, being transferred from the kingdom of darkness to the Kingdom of God's Son to name a few.
The core of the matter is that understanding who Jesus is, the sinless Son of God, came in the flesh and lived the perfect life before God and bore the punishment for sin on the cross. He was the only one that was able to effectly accomplish that work for God, on behalf of us.
God sent His only Son - the one who full and completely walk according to God's righteousness - to die for our sins; to condemn sin in the flesh so that He can bring us to God and restore the relationship between the believing individual and God.
John 3:16
16 For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life.
But one isn't born a Christian instead, there is a point where the gospel is heard and accepted or rejected. John clearly records this and each consequence:
John 3:17-21
17 For God did not send His Son into the world to condemn the world, but that the world through Him might be saved.
18 “He who believes in Him is not condemned; but he who does not believe is condemned already, because he has not believed in the name of the only begotten Son of God. 19 And this is the condemnation, that the light has come into the world, and men loved darkness rather than light, because their deeds were evil. 20 For everyone practicing evil hates the light and does not come to the light, lest his deeds should be exposed. 21 But he who does the truth comes to the light, that his deeds may be clearly seen, that they have been done in God.”
You can have your sins forgiven right now, if you haven't already.
The following passages are accounts from when Jesus was physically on earth. They tell of who He is, His power and authority to forgive sin on earth and what He said about His own blood - that it was shed for many for the remission of sins.
The Gospels record Jesus pronouncing forgiveness directly to individuals — the man let down through the roof (Mark 2:5), the woman who "loved much" (Luke 7:47–48) — and, in Mark 2:9–10, stating this act as evidence of a specific authority: "that ye may know that the Son of man hath power on earth to forgive sins." Matthew 26:28, at the Last Supper, ties forgiveness to Jesus's own blood, calling it "shed for many for the remission of sins."
Paul's letters describe forgiveness as already accomplished and located "in" Christ: "redemption through his blood, the forgiveness of sins" (Ephesians 1:7, repeated almost verbatim in Colossians 1:14), and Colossians 2:13 adds a before-and-after description — "being dead in your sins... hath he quickened... having forgiven you all trespasses."
Hebrews grounds the mechanism in blood generally — "without shedding of blood is no remission" (9:22) — and states a resulting condition: once sins are remitted, "there is no more offering for sin" (10:17–18), quoting God's own statement, "their sins and iniquities will I remember no more."
1 John gives a stated condition and description of God's response: "if we confess our sins, he is faithful and just to forgive" (1:9), and separately states forgiveness as an accomplished fact addressed to "little children... for his name's sake" (2:12). James 5:15 attaches forgiveness to "the prayer of faith" in the specific context of sickness.
Key verses:
- Matthew 26:28 — "For this is my blood of the new testament, which is shed for many for the remission of sins."
- Luke 24:46–47 — "Thus it is written, and thus it behoved Christ to suffer, and to rise from the dead the third day: And that repentance and remission of sins should be preached in his name among all nations."
- Ephesians 1:7 — "In whom we have redemption through his blood, the forgiveness of sins, according to the riches of his grace."
- Colossians 1:14 — "In whom we have redemption through his blood, even the forgiveness of sins."
- Colossians 2:13 — "And you, being dead in your sins... hath he quickened together with him, having forgiven you all trespasses."
- 1 John 1:9 — "If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness."
- 1 John 2:12 — "I write unto you, little children, because your sins are forgiven you for his name's sake."
- Hebrews 9:22 — "And almost all things are by the law purged with blood; and without shedding of blood is no remission."
- Hebrews 10:17–18 — "And their sins and iniquities will I remember no more. Now where remission of theseis, there is no more offering for sin."
- Psalm 103:12 (quoted in substance, OT but foundational) — (omitted here per NT-only instruction — see note below)
- Mark 2:5, 9–10 — "When Jesus saw their faith, he said unto the sick of the palsy, Son, thy sins be forgiven thee... Whether is it easier to say to the sick of the palsy, Thy sins be forgiven thee... But that ye may know that the Son of man hath power on earth to forgive sins..."
- Luke 7:47–48 — "Wherefore I say unto thee, Her sins, which are many, are forgiven; for she loved much: but to whom little is forgiven, the same loveth little. And he said unto her, Thy sins are forgiven."
- James 5:15 — "And the prayer of faith shall save the sick, and the Lord shall raise him up; and if he have committed sin, he shall be forgiven him."