A foldable portable keyboard includes a first input module, a second input module, a connecting unit and a handgrip unit. The first input module has opposing front and back faces, and opposing first and second ends. The second input module has opposing front and back faces, and opposing first and second ends. The connecting unit is configured to be connected to the first end of the first input module and the first end of the second input module. The handgrip unit is configured to be engaged to the second end of the first input module and the second end of the second input module. The first input module and the second input module are configured to be in a flat configuration or in a folded configuration.