Here’s the difference between i.e. and e.g.:
E.g. means “for example”; i.e. means “that is.”
…
E.g. is short for exempli gratia, which literally means “by grace of example.” I.e. is more straightforward: id est means “that is.” The confusion stems from the fact that both abbreviations seek to clarify or focus a broad proposition, but e.g. is followed by a specific example, whereas i.e. is followed by a restatement.