Used with would to say that you prefer one choice or action.
I'd rather stay home tonight.
She'd rather walk than take a taxi.
After would rather, use the verb without to: I'd rather stay, not I'd rather to stay.
Common phrases & grammar
would rather · would rather not
would rather + base verb
would rather + verb + than + verb