A massage device for a massage chair or massage back cushion is provided. The massage device includes: a receiving casing with two sides each provided with an S-shaped track, wherein a rack is disposed at the bottom of the receiving casing a vertically movable casing which is restrained and adapted to mesh with the rack and forced to move along the rack and a swing casing having a top pivotally coupled to the vertically movable casing, having a bottom connected to the vertically movable casing through at least an elastic component, and being flanked by two rollers rolling along the S-shaped tracks. Two massage balls transmitted by a gear set driven by a power source are disposed on the swing casing. The two massage balls each include a rotating disk and two swing arms. Therefore, through vertical movement of the vertically movable casing , the swing casing and massage balls are guided by the S-shaped tracks in feeding or withdrawing along Z-axis and the human back profile.一種可適用於按摩椅或按摩背墊的按摩裝置,係包含有:一凹槽機殼兩槽邊設有S形軌道,凹槽機殼底部設有一齒條,上下行走殼體被限制且嚙合齒條,只能順著齒條移動,擺轉殼體上端樞接至上下行走殼體,擺轉殼體之下端以至少一彈性元件連接至上下行走殼體,擺轉殼體兩側面各設有一滾輪得滾動於S形軌道,擺轉殼體上設有一動力源帶動之齒輪組傳動之兩組按摩頭,兩組按摩頭得設成轉盤加上兩擺臂之按摩頭,據此,上下行走殼體升降移動,擺轉殼體及兩組按摩頭S形軌道導引而可進行Z軸向順人體背部曲線進給或退縮按摩。10‧‧‧凹槽機殼11‧‧‧S形軌道12‧‧‧齒條20‧‧‧上下行走殼體30‧‧‧擺轉殼體50a‧‧‧第一按摩組50b‧‧‧第二按摩組54‧‧‧擺臂55‧‧‧按摩球頭60‧‧‧按摩裝置