A toner container detachably attached to a toner-container holder of a main body of an image forming apparatus includes a container body that includes an opening, and discharges toner contained in the container body, from the opening; and a held portion that is held by the toner-container holder in a non-rotating manner. The held portion includes an open/close member for opening/closing the toner outlet in synchronization with an attachment/detachment operation of the held portion to/from the toner-container holder.