se me ha ocurrido

it occurred to me

→ se
phrase Uncommon #23,008
it occurred to me Used when an idea comes to mind. The idea is the subject: “Se me ha ocurrido una idea” means “An idea has occurred to me.”
SP: Se me ha ocurrido una idea para el viaje.
EN: I’ve had an idea for the trip.

Pero se me ha ocurrido una cosa.

But I’ve just thought of something.

Se me ha ocurrido un sencillo trato.

I've come up with a simple deal.

— Ratatouille (2007)

Como he indicado, ese pensamiento no se me ha ocurrido.

As I have indicated, that thought has not occurred to me.

— Star Trek II. La ira de Khan (1982)

Se me ha ocurrido algo.

I've had an idea.

— Contratiempo (2017)

Se me ha ocurrido una idea.

An idea has occurred to me.

Se me ha ocurrido una cosa.

I've just had an idea.

— Nosotros los pobres (1948)

Y se me ha ocurrido una idea.

And I just had an idea.

— Roofman: Un ladrón en el tejado (2025)