すみません, ごめんなさい and 失礼します: saying excuse me and sorry in Japanese
Use すみません to get attention or apologise lightly, ごめんなさい for a personal apology, and 失礼します for a courteous entrance or departure.

In short
Use すみません to get someone’s attention, apologise for a small inconvenience or acknowledge a favour. Use ごめんなさい for a personal apology, especially with people you know, and 失礼します to politely enter, leave or interrupt.
- Polite attention or small apology すみません。 すみません
Useful before a request or after a small inconvenience.
- Personal apology ごめんなさい。 ごめんなさい
For example, after upsetting a friend.
- Casual apology ごめん。 ごめん
For close friends or family.
- Courteous interruption 失礼します。 しつれいします
Before entering an office or excusing yourself.
One phrase, three jobs
- Visitor
すみません。トイレはどこですか。
Excuse me. Where is the toilet?
- Staff
あちらです。
Over there.
すみませんでした。
丁寧語 politeI’m sorry about that.
The past form can acknowledge a completed mistake, such as arriving late.
すみません、ありがとうございます。
丁寧語 politeOh, thank you so much.
A stranger has picked up something you dropped. The first phrase acknowledges their trouble, and the second thanks them.
In spontaneous speech you may hear すいません. It is a common pronunciation variant of すみません, not a different meaning. Learn the standard spelling and use it in ordinary polite writing. Neither expression is a universal substitute for a serious or formal apology; the scale of the problem and the relationship matter.
Entering an office
失礼します。田中先生、今いいですか。
丁寧語 politeExcuse me. Professor Tanaka, is now a good time?
Knock and wait for an invitation when appropriate; the phrase marks your entry, not necessarily a fault.
On leaving someone’s office you can use the same expression again. In contrast, with a close friend who is upset because you forgot something important, a personal apology is more suitable than a doorway formula. A bare ごめん with an unfamiliar staff member may be too familiar.
Practise by imagining three different interactions: asking a stranger for directions, thanking someone who has gone out of their way, and leaving a meeting room. Say the appropriate formula before any longer sentence. Learn the phrases as whole chunks rather than trying to translate each word separately.