Skip to content
thiagobodrukPublic

About

Bible text in JSON and XML — 90 versions across 35 languages, ready for apps, verse search, and NLP/AI datasets

Topics

Resources

Stars

754 stars

Watchers

37 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bible: XML and JSON

"And this gospel of the kingdom shall be preached in all the world for a witness unto all nations; and then shall the end come." — Matthew 24:14 (KJV)

90 Bible versions in 35 languages 🇧🇷 🇬🇧 🇪🇸 🇨🇳 🇸🇦 🇫🇷 🇩🇪

🤖 AI / LLM-ready

Clean, per-verse structured JSON and XML — no HTML, no markup noise, no scraping artifacts. The same canonical book abbreviations are used across every language and version, so verses align out of the box for embeddings, RAG pipelines, fine-tuning, and cross-lingual alignment tasks. MIT-licensed code with permissively-sourced text, ready to feed straight into a dataset or a context window.

Do you want to create a Bible based app? What about an API for Bible verses search? Now you can do this, using sources in your very own language! The main objective of this project is to allow people to create Bible related apps using XML and JSON. Do you like this idea? Help us to go even further. Support this project! :)

Donate

How were the files built?

The source files were generated using a Python based crawler. Therefore, these files may contain minor issues related to encoding and syntax.

Which languages and versions are covered by the project?

Language Version Files Notes
🇸🇦 Arabic Ketab El Hayat Majani ar_kehm
🇧🇾 Belarusian Bíblia (tradução de V. Semukha) be_bbl
🇧🇩 Bengali Indian Revised Version (IRV) Bengali bn_irvben
🇧🇷 Brazilian Portuguese Almeida Revisada Imprensa Bíblica pt_aa
🇧🇷 Brazilian Portuguese Almeida Corrigida e Revisada Fiel pt_acf
🇧🇷 Brazilian Portuguese Almeida Revista e Atualizada pt_ara
🇧🇷 Brazilian Portuguese Almeida Revista e Corrigida pt_arc
🇧🇷 Brazilian Portuguese Almeida Revista e Corrigida 1969 pt_rc69
🇧🇷 Brazilian Portuguese Almeida Século 21 pt_a21
🇧🇷 Brazilian Portuguese Bíblia para Todos pt_bpt09
🇧🇷 Brazilian Portuguese Bíblia Sagrada Ave-Maria pt_avm Malachi has 3 chapters instead of 4 in this edition
🇧🇷 Brazilian Portuguese Bíblia Sagrada: Versão Fácil de Ler pt_vfl
🇧🇷 Brazilian Portuguese Edição Pastoral pt_pastoral Malachi has 3 chapters instead of 4 in this edition
🇧🇷 Brazilian Portuguese King James Atualizada pt_kja
🇧🇷 Brazilian Portuguese King James Fiel pt_bkj
🇧🇷 Brazilian Portuguese Nova Almeida Atualizada pt_naa
🇧🇷 Brazilian Portuguese Nova Bíblia Viva 2007 pt_nbv
🇧🇷 Brazilian Portuguese Nova Tradução na Linguagem de Hoje pt_ntlh
🇧🇷 Brazilian Portuguese Nova Versão Internacional pt_nvi
🇧🇷 Brazilian Portuguese Nova Versão Internacional 2011 pt_nvi2011
🇧🇷 Brazilian Portuguese Nova Versão Transformadora pt_nvt
🇧🇷 Brazilian Portuguese O Livro pt_ol
🇧🇷 Brazilian Portuguese Tradução Brasileira pt_tb
🇧🇷 Brazilian Portuguese Tradução do Pe. Matos Soares pt_matos Malachi has 3 chapters instead of 4 in this edition
🇧🇬 Bulgarian Veren bg_vbg
🇨🇳 Chinese Chinese Union Version (New Punctuation, Shen Edition) zh_cunpss-shen
🇨🇳 Chinese New Chinese Version zh_cnvs
🇨🇿 Czech Bible Kralická 1613 cs_bkr
🇬🇧 English American Standard Version 1901 en_asv
🇬🇧 English Amplified Bible en_amp
🇬🇧 English Basic English en_bbe
🇬🇧 English Berean Standard Bible en_bsb
🇬🇧 English Christian Standard Bible en_csb
🇬🇧 English Contemporary English Version en_cev
🇬🇧 English Darby's Translation 1890 en_darby
🇬🇧 English Douay-Rheims American 1899 en_dra
🇬🇧 English English Standard Version en_esv
🇬🇧 English Free Bible Version en_fbv
🇬🇧 English Geneva Bible en_gnv
🇬🇧 English Good News Translation en_gnt
🇬🇧 English Jubilee Bible en_jub
🇬🇧 English King James Version en_kjv
🇬🇧 English King James Version with Apocrypha en_kjva
🇬🇧 English Lexham English Bible en_leb
🇬🇧 English Literal Standard Version en_lsv
🇬🇧 English Majority Standard Bible en_mbsb
🇬🇧 English New American Standard Bible 2020 en_nasb
🇬🇧 English New International Version en_niv
🇬🇧 English New King James Version en_nkjv
🇬🇧 English New Living Translation en_nlt
🇬🇧 English New Messianic Version Bible en_nmv
🇬🇧 English Revised Version 1885 en_engrv
🇬🇧 English The Cambridge Paragraph Bible of the Authorized English Version en_kjvcpb
🇬🇧 English The Orthodox Jewish Bible en_tojb2011 Malachi has 3 chapters instead of 4 in this edition
🇬🇧 English A Translation for Translators en_t4t
🇬🇧 English World English Bible (American Edition) en_web
🇬🇧 English World English Bible Updated en_webu
🇬🇧 English World English Bible (British Edition) en_webbe
🇬🇧 English World English Bible, American English Edition, without Strong's numbers en_webus
🇬🇧 English World Messianic Bible (American English) en_wmb
🇬🇧 English World Messianic Bible (British Edition) en_wmbbe
🇬🇧 English Wycliffe's Bible with Modern Spelling en_wbms
🇬🇧 English Young's Literal Translation 1898 en_ylt98
🌍 Esperanto La Sankta Biblio 1926 eo_esp
🇵🇭 Filipino Ang Biblia 1905 tl_abtag
🇫🇮 Finnish Kirkkoraamattu 1933/38 fi_fb38
🇫🇷 French Le Bible de I'Épée fr_apee
🇩🇪 German Schlachter 1951 de_sch1951
🇬🇷 Greek Modern Greek (Demotic) el_fpb
🇮🇳 Hindi Indian Revised Version (IRV) Hindi 2019 hi_irvhin
🇭🇺 Hungarian Károli 1908 hu_hunk
🇮🇹 Italian Sacra Bibbia Versione Riveduta 2020 it_irb20
🇰🇷 Korean Korean Revised ko_krv
🇮🇳 Marathi Indian Revised Version (IRV) Marathi mr_irvmar
🇳🇴 Norwegian (Bokmål) Bibel 2011 nb_bibel2011
🇮🇷 Persian Persian Contemporary Bible 2022 fa_opcb
🇵🇱 Polish Uwspółcześniona Biblia Gdańska pl_ubg
🇮🇳 Punjabi Indian Revised Version (IRV) Punjabi pa_irvpun
🇷🇴 Romanian Versiunea Dumitru Cornilescu ro_vdc
🇷🇺 Russian Синодальный перевод (Synodal Translation) ru_synod Incomplete, 64 of 66 books — see Known gaps
🇷🇸 Serbian Daničić-Karadžić sr_dk
🇪🇸 Spanish Reina Valera 1960 es_rvr1960
🇰🇪 Swahili Swahili Revised Union Version sw_sruv
🇸🇪 Swedish Svenska Folkbibeln 2015 sv_sfb15
🇮🇳 Tamil Indian Revised Version (IRV) Tamil ta_irvtam
🇮🇳 Telugu Indian Revised Version (IRV) Telugu 2019 te_irvtel
🇹🇭 Thai Thai KJV th_kjvthai
🇹🇷 Turkish Yorumsuz Türkçe Çeviri tr_ytc
🇵🇰 Urdu Indian Revised Version (IRV) Urdu 2019 ur_irvurd Text is in Devanagari script rather than Perso-Arabic — this is how the source itself publishes this edition, aimed at Urdu speakers who read Devanagari
🇻🇳 Vietnamese Tiếng Việt vi_vie

Each entry's files are json/<code>.json and xml/<code>.xml (e.g. json/pt_nvi.json, xml/pt_nvi.xml). json/index.json lists this same catalog in machine-readable form.

Known gaps

  • Russian (ru_synod): the Book of Esther and the Book of Daniel are missing. The upstream data source does not publish standalone texts for these two books in this particular translation; both are traditionally presented within an expanded Greek text (interleaved with deuterocanonical additions) rather than as independently addressable books, and that alternate text does not fit this project's per-book chapter/verse structure. This is the only Russian-language translation available from the source, so no substitute could be used. See json/ru_synod.disclaimer.txt / xml/ru_synod.disclaimer.txt for details.
  • English, Basic English (en_bbe) and French, Le Bible de l'Épée (fr_apee) are kept as previously published, unchanged in this update — the source used to refresh the other versions no longer offers these two translations.
  • Three English editions available from the source were deliberately left out because the source's own data for them is broken or incompatible with this project's per-verse structure: American Standard Version Byzantine Text with Apocrypha (only one book has working chapter pages, the rest 404), Brenton English Septuagint, Updated (missing the Book of Nehemiah, due to a different Ezra-Nehemiah split in the Septuagint), and The Message (a loose paraphrase whose page markup omits per-verse boundaries for ~50 chapters scattered across the Bible, so individual verses can't be extracted there).
  • A few versions were refreshed from their closest currently available equivalent, since the previous edition is no longer published by the source: Arabic (ar_svd → ar_kehm), Chinese Union Version (zh_cuv → zh_cunpss-shen, New Punctuation, Shen Edition), Spanish (es_rvr → es_rvr1960), German (de_schlachter → de_sch1951), Korean (ko_ko → ko_krv), Esperanto (eo_esperanto → eo_esp), Finnish (fi_finnish + fi_pr → a single fi_fb38, since both old codes referred to the same edition), Romanian (ro_cornilescu → ro_vdc), Russian (ru_synodal → ru_synod), Vietnamese (vi_vietnamese → vi_vie), and Modern Greek (el_greek → el_fpb, chosen because it is the only current Greek edition that includes the Book of Esther as a standalone book).
  • Two languages available from the source were evaluated for this update but left out because every candidate edition has a substantial part of the Old Testament missing, with no complete alternative available: Dutch (gbv no longer resolves on the source; nld1939 is missing the entire Books of Esther and Daniel) and Indonesian (tsi is missing 18 books, ags is missing 39 books — both editions have large gaps scattered across the Old Testament, not a single fixable book).

How the files are structured?

XML

The XML files are encoded using UTF-8 and built in the following structure:

<bible>
  <b id="abbrev" n="Book Name">
    <c n="1">
      <v n="1">Verse text</v>
    </c>
  </b>
</bible>

JSON

The JSON files are also encoded using UTF-8 and built in the following structure:

[
	{
	"abbrev": "abbrev",
	"name": "Book Name",
	"chapters":
		[
			["Verse 1", "Verse 2", "Verse 3", "..."],
			["Verse 1", "Verse 2", "Verse 3", "..."],
			["Verse 1", "Verse 2", "Verse 3", "..."]
		]
	}
]

You can get the number of the chapter and verse using the array index.

What about the license and the copyrights?

This project's code and data are distributed under the MIT License. All the Bible versions are property of their respective owners. All rights reserved to the owners.

How can I help the project?

You can review the code, enhance the structures or work on new versions. Every help is welcome! :)

Can I donate to the project?

Yes, you can! You can give a volunteer donation by PayPal.

Donate

About

Bible text in JSON and XML — 90 versions across 35 languages, ready for apps, verse search, and NLP/AI datasets

Topics

Resources

Stars

754 stars

Watchers

37 watching

Forks

Releases

Sponsor this project

Packages

Contributors