# Python to Fortran transpiler is online

**URL:** <https://fortran-lang.discourse.group/t/python-to-fortran-transpiler-is-online/11157>\
**Category:** Uncategorized\
**Created:** [October 7, 2026, 11:02am UTC](https://fortran-lang.discourse.group/t/python-to-fortran-transpiler-is-online/11157 "2026-10-07T11:02:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [October 7, 2026, 11:02am UTC](https://fortran-lang.discourse.group/t/python-to-fortran-transpiler-is-online/11157/1 "2026-10-07T11:02:13Z")

</div>

I created a site [p2f — Run Python and Fortran](https://beliavsky.github.io/python-to-fortran-playground/run/) where you can enter Python/NumPy code, translate it, and run both the Python and translated Fortran program. Programs can be compiled with gfortran, Intel Fortran, LLVM Flang, and LFortran. It is powered by Modal, which I pay for after $30/month free usage, so there is a limit of 100 runs per user per day. A user can run a local site if he has the compilers and Python installed. The underlying transpiler, which I announced recently, is [here](https://github.com/beliavsky/python-to-fortran).

The site [p2f — Python → Fortran playground](https://beliavsky.github.io/python-to-fortran-playground/) is run on GitHub and just translates Python to Fortran without allowing execution of the Python or Fortran code. It has unlimited use.

In another [thread](https://fortran-lang.discourse.group/t/sc26-and-fortran/11140/24) @sumseq wrote

> [@](#):
>
> I think having slides showing numpy and Fortran side-by-side with performance on the bottom of each would be great.

The online transpiler permits live demonstrations.
