There currently is one option to travel by night train from Stockholm (Sweden) to Berlin (Germany), taking approximately 17 hours: Namely the EN 345 operated by SJ.
The Swedish Railway SJ operates night trains daily throughout Sweden, covering long distances and serving remote areas.
SJ night trains offer seats, couchettes, and sleeper cars. The sleeper cars feature various compartment types: for two or three people and single compartments. On some routes, Deluxe compartments with private bathroom and shower are also available.
All sleeper compartments at SJ are equipped with a washbasin. The Deluxe compartments additionally offer a private bathroom with shower.
The couchettes offer space for up to six people with access to provided bedding and toilets in the carriage corridor. The middle berths fold up during the day to create seating areas. Compartment options include women-only, men-only, or mixed assignments. Private couchette compartments are available for travelers with pets upon request.