# Decompile BEAM files to Elixir source code

**URL:** <https://forum.elixirforum.com/t/decompile-beam-files-to-elixir-source-code/14081>\
**Category:** Questions\
**Tags:** beam, ast\
**Created:** [May 7, 2018, 2:44pm UTC](https://forum.elixirforum.com/t/decompile-beam-files-to-elixir-source-code/14081 "2018-05-07T14:44:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![olafura](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/olafura/32/12420_2.png) [@olafura](https://forum.elixirforum.com/u/olafura)\
**Post date:** [July 30, 2021, 11:37am UTC](https://forum.elixirforum.com/t/decompile-beam-files-to-elixir-source-code/14081/10 "2021-07-30T11:37:08Z")

</div>

It depends on if the beam file includes the AST or not. Try this:

> <https://gist.github.com/shino/e5d76ced2e44cc6a21d0>

I believe there are some mechanisms in the compiler to turn the beam bytecode into Core Erlang if you just want to deduce the logic similar to an decompiler

---

_[View the full topic](https://forum.elixirforum.com/t/decompile-beam-files-to-elixir-source-code/14081)._
