Upper abdominal pain ?

Any idea what it could be ? Idk how to explain the pain but it's right under my rib area feels like it's in my stomach and it really hurts . I thought I could be gas but doesn't feel like it .