The device is for grinding a pipe from an inside. The device has a spindle arranged to be rotated. The device further has protrusions fastened to the spindle. The protrusions have a strip causing an elastic force when being bent. The protrusions are arranged to position the device or a part of the device inside the pipe. The protrusions have blades arranged to grind the inner surface of the pipe, while the spindle is being rotated.