# Converting Teal code to PyTeal

**URL:** https://forum.algorand.co/t/converting-teal-code-to-pyteal/9406
**Category:** General
**Tags:** teal
**Created:** [April 17, 2023, 2:20am UTC](https://forum.algorand.co/t/converting-teal-code-to-pyteal/9406 "2023-04-17T02:20:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ahalsu67](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ahalsu67](https://forum.algorand.co/u/ahalsu67)
#### Post date: [April 17, 2023, 2:20am UTC](https://forum.algorand.co/t/converting-teal-code-to-pyteal/9406/1 "2023-04-17T02:20:51Z")

</div>

Hi All,  
Are there any tooling that converts Teal code to PyTeal for easier readability?

For those like me who just got started studying Algorand, having to deal with Teal when reading deployed smart contracts from day one is a bit combursome.

---

<div class="post-metadata">

### Author: ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)
#### Post date: [April 17, 2023, 1:45pm UTC](https://forum.algorand.co/t/converting-teal-code-to-pyteal/9406/2 "2023-04-17T13:45:14Z")

</div>

You cannot easily convert PyTeal to TEAL if you don’t have the PyTeal code.

If you have the PyTeal code and want to debug the TEAL code, then you can easily map the TEAL code to the PyTeal code following [Pyteal 0.24.0: Sourcemapping! | Algorand Developer Portal](https://developer.algorand.org/articles/pyteal-sourcemapping/)

If you want to read smart contracts from someone else to understand them, you may want to try checking if the smart contracts are open source.

Note that not all smart contracts are written in PyTeal to begin with. TinyMan is written in Tealish ([GitHub - tinymanorg/tinyman-amm-contracts-v2: Tinyman AMM Contracts V2](https://github.com/tinymanorg/tinyman-amm-contracts-v2)) for example.
